Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.991/1.991, allocations: 387.1 MB / 399.7 MB, free: 9.469 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009532/0.0009533, allocations: 184.8 kB / 492.3 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 221.3 MB / 0.7871 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008384/0.0008383, allocations: 111.2 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.617e-05/2.62e-05, allocations: 8 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2439, allocations: 142.4 MB / 1.212 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7239/0.9678, allocations: 153.6 MB / 1.363 GB, free: 18.89 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/0.968, allocations: 80.2 kB / 1.363 GB, free: 18.89 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01291/0.981, allocations: 5.531 MB / 1.368 GB, free: 34.3 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.102e-06/0.981, allocations: 0 / 1.368 GB, free: 34.3 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.46e-05/0.981, allocations: 3.812 kB / 1.368 GB, free: 34.3 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003863/0.9814, allocations: 472 kB / 1.368 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.9814, allocations: 7.688 kB / 1.368 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.322e-05/0.9815, allocations: 30.56 kB / 1.368 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.335e-05/0.9815, allocations: 18.91 kB / 1.368 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002971/0.9818, allocations: 268.9 kB / 1.369 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.9819, allocations: 7.406 kB / 1.369 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.609e-05/0.9819, allocations: 0 / 1.369 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.982, allocations: 94.77 kB / 1.369 GB, free: 33.53 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.9821, allocations: 3.938 kB / 1.369 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.9821, allocations: 3.562 kB / 1.369 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.9821, allocations: 3.844 kB / 1.369 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.808e-05/0.9822, allocations: 32.72 kB / 1.369 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004134/0.9826, allocations: 375.2 kB / 1.369 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.9827, allocations: 91.14 kB / 1.369 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.12e-05/0.9828, allocations: 30.7 kB / 1.369 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.9828, allocations: 0 / 1.369 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001116/0.9829, allocations: 89.89 kB / 1.369 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.292e-06/0.9829, allocations: 0 / 1.369 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0001955/0.9831, allocations: 118.5 kB / 1.37 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.334e-05/0.9832, allocations: 106.7 kB / 1.37 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.9834, allocations: 243 kB / 1.37 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.9834, allocations: 29.67 kB / 1.37 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.208e-05/0.9834, allocations: 114.5 kB / 1.37 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.9834, allocations: 20.77 kB / 1.37 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-06/0.9835, allocations: 4 kB / 1.37 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 4.908e-05/0.9835, allocations: 327.9 kB / 1.37 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.052e-05/0.9836, allocations: 27.7 kB / 1.37 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.101e-05/0.9836, allocations: 67.16 kB / 1.37 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.929e-05/0.9837, allocations: 35.59 kB / 1.37 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.9837, allocations: 4 kB / 1.37 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001404/0.9838, allocations: 117.1 kB / 1.371 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.9839, allocations: 3.875 kB / 1.371 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.9839, allocations: 0 / 1.371 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.708e-06/0.9839, allocations: 0 / 1.371 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.389e-05/0.984, allocations: 22.34 kB / 1.371 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.984, allocations: 0 / 1.371 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.289e-05/0.9841, allocations: 11.69 kB / 1.371 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.9841, allocations: 160 / 1.371 GB, free: 32.34 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.412e-05/0.9841, allocations: 119.5 kB / 1.371 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.238e-05/0.9842, allocations: 15.47 kB / 1.371 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001786/0.9843, allocations: 126.4 kB / 1.371 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.9844, allocations: 0 / 1.371 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.9844, allocations: 7.828 kB / 1.371 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.9844, allocations: 2.25 kB / 1.371 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.9845, allocations: 232.2 kB / 1.371 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.9845, allocations: 0 / 1.371 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.199e-05/0.9846, allocations: 6.078 kB / 1.371 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.9846, allocations: 8.062 kB / 1.371 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.9846, allocations: 3.75 kB / 1.371 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.9846, allocations: 3.938 kB / 1.371 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.9846, allocations: 0 / 1.371 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001532/0.9848, allocations: 149.6 kB / 1.371 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.363e-05/0.9848, allocations: 103.2 kB / 1.371 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/0.9849, allocations: 0 / 1.371 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.862e-05/0.9849, allocations: 7.375 kB / 1.371 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.985, allocations: 14.97 kB / 1.371 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.985, allocations: 7.109 kB / 1.371 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001273/0.9851, allocations: 196.9 kB / 1.372 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9851, allocations: 0 / 1.372 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002243/0.9854, allocations: 60.44 kB / 1.372 GB, free: 31.69 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00105/0.9864, allocations: 0.9731 MB / 1.373 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001537/0.9866, allocations: 77.09 kB / 1.373 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.9866, allocations: 0 / 1.373 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.977e-05/0.9867, allocations: 36.73 kB / 1.373 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/0.9869, allocations: 40.62 kB / 1.373 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004629/0.9873, allocations: 289.6 kB / 1.373 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.9876, allocations: 0.7321 MB / 1.374 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.228e-05/0.9877, allocations: 23.97 kB / 1.374 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.954e-05/0.9878, allocations: 56.05 kB / 1.374 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/0.9878, allocations: 0 / 1.374 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01397/1.002, allocations: 4.217 MB / 1.378 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001388/1.002, allocations: 187.3 kB / 1.378 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.49/2.492, allocations: 2.625 kB / 1.378 GB, free: 29.47 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat does not exist to compare? outputFormat=mat