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 2.27/2.27, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001133/0.001133, allocations: 177 kB / 498.1 MB, free: 5.727 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.668/1.668, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.001151/0.001151, allocations: 106.8 kB / 0.9346 GB, free: 6.188 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.000358, allocations: 6.969 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2676, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1885/0.4562, allocations: 153.7 MB / 1.373 GB, free: 8.219 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/0.4565, allocations: 83.94 kB / 1.373 GB, free: 8.137 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0166/0.4731, allocations: 5.549 MB / 1.379 GB, free: 2.586 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.264e-06/0.4732, allocations: 4 kB / 1.379 GB, free: 2.582 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.229e-05/0.4732, allocations: 0 / 1.379 GB, free: 2.582 MB / 0.8698 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.0008409/0.4741, allocations: 0.4941 MB / 1.379 GB, free: 2.035 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.4741, allocations: 12.03 kB / 1.379 GB, free: 2.023 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.972e-05/0.4742, allocations: 38.55 kB / 1.379 GB, free: 1.977 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.648e-05/0.4743, allocations: 19.77 kB / 1.379 GB, free: 1.957 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004575/0.4748, allocations: 252.4 kB / 1.379 GB, free: 1.668 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.4748, allocations: 4 kB / 1.379 GB, free: 1.664 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.677e-05/0.4748, allocations: 4 kB / 1.379 GB, free: 1.66 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.4751, allocations: 104.2 kB / 1.379 GB, free: 1.543 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.4751, allocations: 3.938 kB / 1.379 GB, free: 1.539 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.4751, allocations: 0 / 1.379 GB, free: 1.539 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.828e-05/0.4751, allocations: 4 kB / 1.379 GB, free: 1.535 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.4753, allocations: 35.97 kB / 1.379 GB, free: 1.5 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006707/0.4759, allocations: 372.7 kB / 1.38 GB, free: 1.086 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.4762, allocations: 91.53 kB / 1.38 GB, free: 0.9883 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.4762, allocations: 4 kB / 1.38 GB, free: 0.9844 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.4764, allocations: 83.47 kB / 1.38 GB, free: 0.8906 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=8): time 2.124e-06/0.4764, allocations: 3.938 kB / 1.38 GB, free: 0.8867 MB / 0.8698 GB Notification: Performance of matching and sorting (n=8): time 0.0004859/0.4769, allocations: 226.6 kB / 1.38 GB, free: 0.6406 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.498e-05/0.477, allocations: 106.8 kB / 1.38 GB, free: 0.5117 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003038/0.4773, allocations: 249.8 kB / 1.381 GB, free: 268 kB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.4773, allocations: 25.7 kB / 1.381 GB, free: 236 kB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.862e-05/0.4774, allocations: 120 kB / 1.381 GB, free: 112 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.361e-05/0.4775, allocations: 19.8 kB / 1.381 GB, free: 92 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.501e-06/0.4775, allocations: 0 / 1.381 GB, free: 92 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.4777, allocations: 330.8 kB / 1.381 GB, free: 15.76 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.634e-05/0.4777, allocations: 27.92 kB / 1.381 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.4779, allocations: 76.27 kB / 1.381 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.052e-05/0.478, allocations: 31.98 kB / 1.381 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.478, allocations: 0 / 1.381 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002433/0.4782, allocations: 121.3 kB / 1.381 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.4783, allocations: 8 kB / 1.381 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.4783, allocations: 0 / 1.381 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.4783, allocations: 7.984 kB / 1.381 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.756e-05/0.4784, allocations: 12 kB / 1.381 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.4784, allocations: 0 / 1.381 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.424e-05/0.4785, allocations: 19.89 kB / 1.381 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.4785, allocations: 7.984 kB / 1.381 GB, free: 15.43 MB / 0.8855 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 () * Number of clocked 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 0.0001508/0.4787, allocations: 144.6 kB / 1.381 GB, free: 15.28 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.806e-05/0.4787, allocations: 15.81 kB / 1.381 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003273/0.4791, allocations: 127.4 kB / 1.382 GB, free: 15.13 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.4791, allocations: 4 kB / 1.382 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.4791, allocations: 3.953 kB / 1.382 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.4791, allocations: 0 / 1.382 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002386/0.4794, allocations: 233.5 kB / 1.382 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.4794, allocations: 0 / 1.382 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.017e-05/0.4794, allocations: 7.984 kB / 1.382 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.4794, allocations: 4 kB / 1.382 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.4795, allocations: 192 / 1.382 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.4795, allocations: 0 / 1.382 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4795, allocations: 4.016 kB / 1.382 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002831/0.4798, allocations: 164.8 kB / 1.382 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.4799, allocations: 104.8 kB / 1.382 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.914e-05/0.4799, allocations: 0 / 1.382 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.17e-05/0.48, allocations: 4 kB / 1.382 GB, free: 14.52 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.43e-05/0.4801, allocations: 11.98 kB / 1.382 GB, free: 14.51 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.4801, allocations: 7.984 kB / 1.382 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002114/0.4803, allocations: 204.3 kB / 1.382 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.21e-07/0.4803, allocations: 4 kB / 1.382 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002966/0.4806, allocations: 47.98 kB / 1.382 GB, free: 14.25 MB / 0.8855 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) * Number of clocked states: 0 () * 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.001594/0.4822, allocations: 1.023 MB / 1.383 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002504/0.4825, allocations: 87.89 kB / 1.383 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4825, allocations: 0 / 1.383 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.4826, allocations: 43.97 kB / 1.383 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.4829, allocations: 27.95 kB / 1.384 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.4846, allocations: 1.146 MB / 1.385 GB, free: 12 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/0.485, allocations: 0.7282 MB / 1.385 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 9.511e-05/0.4851, allocations: 25.38 kB / 1.385 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.189e-05/0.4852, allocations: 47.42 kB / 1.385 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of SimCode: time 4.71e-07/0.4852, allocations: 0 / 1.385 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02043/0.5057, allocations: 4.253 MB / 1.39 GB, free: 7.059 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002468/0.506, allocations: 220.7 kB / 1.39 GB, free: 6.816 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/2.26, allocations: 0 / 1.39 GB, free: 6.816 MB / 0.8855 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