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.366/2.366, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001165/0.001166, allocations: 176.8 kB / 487.4 MB, free: 5.039 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.433/1.433, allocations: 221.5 MB / 0.7824 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008739/0.000874, allocations: 103.8 kB / 0.9219 GB, free: 2.16 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.517e-05/2.519e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3401, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9806/1.321, allocations: 153 MB / 1.355 GB, free: 18.26 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/1.321, allocations: 78.56 kB / 1.355 GB, free: 18.26 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01471/1.336, allocations: 5.496 MB / 1.361 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.655e-06/1.336, allocations: 0 / 1.361 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.411e-05/1.336, allocations: 3.844 kB / 1.361 GB, free: 33.67 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.0007359/1.337, allocations: 471.3 kB / 1.361 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/1.337, allocations: 7.719 kB / 1.361 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.621e-05/1.337, allocations: 15.5 kB / 1.361 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/1.337, allocations: 260.9 kB / 1.362 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/1.337, allocations: 0 / 1.362 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.568e-05/1.337, allocations: 7.781 kB / 1.362 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001146/1.337, allocations: 33.23 kB / 1.362 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/1.338, allocations: 89.55 kB / 1.362 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/1.338, allocations: 11.86 kB / 1.362 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/1.338, allocations: 0 / 1.362 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/1.338, allocations: 0 / 1.362 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005416/1.338, allocations: 345.6 kB / 1.362 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001449/1.338, allocations: 76.44 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.387e-05/1.338, allocations: 38.62 kB / 1.362 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/1.338, allocations: 0 / 1.362 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/1.339, allocations: 86.25 kB / 1.362 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/1.339, allocations: 0.6562 kB / 1.362 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0003105/1.339, allocations: 106.2 kB / 1.362 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/1.339, allocations: 109.4 kB / 1.362 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/1.339, allocations: 240.3 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/1.339, allocations: 29.7 kB / 1.363 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.661e-05/1.339, allocations: 115.2 kB / 1.363 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.647e-05/1.339, allocations: 22.03 kB / 1.363 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-06/1.339, allocations: 3.938 kB / 1.363 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001432/1.34, allocations: 324.6 kB / 1.363 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.281e-05/1.34, allocations: 25.38 kB / 1.363 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.749e-05/1.34, allocations: 71.52 kB / 1.363 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.346e-05/1.34, allocations: 29.36 kB / 1.363 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.34, allocations: 3.938 kB / 1.363 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000162/1.34, allocations: 110 kB / 1.363 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/1.34, allocations: 9.875 kB / 1.363 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/1.34, allocations: 3.938 kB / 1.363 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/1.34, allocations: 0 / 1.363 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.892e-05/1.34, allocations: 14.39 kB / 1.363 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/1.34, allocations: 0 / 1.363 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.941e-05/1.34, allocations: 19.3 kB / 1.363 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/1.34, allocations: 3.781 kB / 1.363 GB, free: 31.79 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 0.0001029/1.34, allocations: 112.3 kB / 1.364 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001649/1.341, allocations: 107.6 kB / 1.364 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.088e-05/1.341, allocations: 15.62 kB / 1.364 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/1.341, allocations: 118.4 kB / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/1.341, allocations: 5.406 kB / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/1.341, allocations: 3.953 kB / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/1.341, allocations: 4 kB / 1.364 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/1.341, allocations: 210.2 kB / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/1.341, allocations: 2.625 kB / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.625e-05/1.341, allocations: 11.34 kB / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/1.341, allocations: 0 / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/1.341, allocations: 6.875 kB / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/1.341, allocations: 0 / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.341, allocations: 0 / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002009/1.341, allocations: 146.1 kB / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.886e-05/1.341, allocations: 103.1 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.231e-05/1.341, allocations: 0 / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.462e-05/1.342, allocations: 3.875 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.181e-05/1.342, allocations: 17.98 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/1.342, allocations: 7.812 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001567/1.342, allocations: 188.3 kB / 1.364 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.342, allocations: 0 / 1.364 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.00028/1.342, allocations: 45.84 kB / 1.364 GB, free: 31.14 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.00137/1.343, allocations: 0.9468 MB / 1.365 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001929/1.344, allocations: 74.98 kB / 1.365 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/1.344, allocations: 4.062 kB / 1.365 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.779e-05/1.344, allocations: 36.44 kB / 1.366 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/1.344, allocations: 33.77 kB / 1.366 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006231/1.345, allocations: 287 kB / 1.366 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/1.345, allocations: 0.7324 MB / 1.367 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.05e-05/1.345, allocations: 27.48 kB / 1.367 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.852e-05/1.345, allocations: 53.09 kB / 1.367 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.345, allocations: 0 / 1.367 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/1.366, allocations: 3.794 MB / 1.37 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/1.367, allocations: 169 kB / 1.37 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/3.049, allocations: 0 / 1.37 GB, free: 29.04 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