Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.513/2.513, allocations: 284.9 MB / 292.4 MB, free: 10.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001495, allocations: 184.8 kB / 360.6 MB, free: 7.258 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.323/2.323, allocations: 205.3 MB / 0.6191 GB, free: 12.17 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001503/0.001502, allocations: 85.25 kB / 0.7321 GB, free: 44.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.603e-05/2.614e-05, allocations: 4 kB / 0.8509 GB, free: 3.312 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8546/0.8547, allocations: 115.3 MB / 0.9634 GB, free: 78.46 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.244/1.099, allocations: 141.1 MB / 1.101 GB, free: 15.42 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/1.099, allocations: 80.66 kB / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02491/1.124, allocations: 5.358 MB / 1.106 GB, free: 10.06 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.674e-06/1.124, allocations: 0.6875 kB / 1.106 GB, free: 10.06 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.457e-05/1.124, allocations: 4 kB / 1.106 GB, free: 10.06 MB / 0.7136 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.0007659/1.125, allocations: 465.3 kB / 1.107 GB, free: 9.555 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/1.125, allocations: 12.03 kB / 1.107 GB, free: 9.543 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.368e-05/1.125, allocations: 17.73 kB / 1.107 GB, free: 9.527 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005447/1.126, allocations: 251.7 kB / 1.107 GB, free: 9.238 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/1.126, allocations: 0.6875 kB / 1.107 GB, free: 9.238 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/1.126, allocations: 4 kB / 1.107 GB, free: 9.234 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000177/1.126, allocations: 32.61 kB / 1.107 GB, free: 9.203 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002015/1.126, allocations: 93.48 kB / 1.107 GB, free: 9.098 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/1.126, allocations: 2.562 kB / 1.107 GB, free: 9.098 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/1.126, allocations: 0.5938 kB / 1.107 GB, free: 9.098 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.466e-05/1.126, allocations: 4 kB / 1.107 GB, free: 9.094 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000731/1.127, allocations: 355.1 kB / 1.108 GB, free: 8.711 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/1.127, allocations: 83.28 kB / 1.108 GB, free: 8.621 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.091e-05/1.127, allocations: 30.88 kB / 1.108 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/1.127, allocations: 0 / 1.108 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/1.127, allocations: 77.86 kB / 1.108 GB, free: 8.504 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 2.545e-06/1.127, allocations: 3.938 kB / 1.108 GB, free: 8.5 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.0004127/1.128, allocations: 113.4 kB / 1.108 GB, free: 8.383 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/1.128, allocations: 102.8 kB / 1.108 GB, free: 8.258 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004015/1.128, allocations: 235 kB / 1.108 GB, free: 8.02 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/1.128, allocations: 29.7 kB / 1.108 GB, free: 7.984 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/1.129, allocations: 120.1 kB / 1.108 GB, free: 7.863 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.105e-05/1.129, allocations: 23.7 kB / 1.108 GB, free: 7.84 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-06/1.129, allocations: 0 / 1.108 GB, free: 7.84 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001576/1.129, allocations: 330.8 kB / 1.109 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.89e-05/1.129, allocations: 20 kB / 1.109 GB, free: 7.488 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/1.129, allocations: 76 kB / 1.109 GB, free: 7.402 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/1.129, allocations: 39.91 kB / 1.109 GB, free: 7.363 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/1.129, allocations: 0 / 1.109 GB, free: 7.363 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003093/1.13, allocations: 103.4 kB / 1.109 GB, free: 7.258 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/1.13, allocations: 4 kB / 1.109 GB, free: 7.254 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/1.13, allocations: 4 kB / 1.109 GB, free: 7.25 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/1.13, allocations: 0 / 1.109 GB, free: 7.25 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/1.13, allocations: 15.98 kB / 1.109 GB, free: 7.234 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/1.13, allocations: 0 / 1.109 GB, free: 7.234 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/1.13, allocations: 11.97 kB / 1.109 GB, free: 7.223 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/1.13, allocations: 7.953 kB / 1.109 GB, free: 7.215 MB / 0.7136 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.0001309/1.13, allocations: 114.9 kB / 1.109 GB, free: 7.098 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002989/1.13, allocations: 105.5 kB / 1.109 GB, free: 6.988 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.02e-05/1.13, allocations: 15.75 kB / 1.109 GB, free: 6.973 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003794/1.131, allocations: 131.4 kB / 1.109 GB, free: 6.84 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/1.131, allocations: 0 / 1.109 GB, free: 6.84 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/1.131, allocations: 7.953 kB / 1.109 GB, free: 6.832 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/1.131, allocations: 4 kB / 1.109 GB, free: 6.828 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002951/1.131, allocations: 206 kB / 1.11 GB, free: 6.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/1.131, allocations: 0 / 1.11 GB, free: 6.59 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.997e-05/1.131, allocations: 12 kB / 1.11 GB, free: 6.578 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/1.131, allocations: 0 / 1.11 GB, free: 6.578 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/1.131, allocations: 3.984 kB / 1.11 GB, free: 6.574 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/1.131, allocations: 0 / 1.11 GB, free: 6.574 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.131, allocations: 0 / 1.11 GB, free: 6.574 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000347/1.132, allocations: 150.4 kB / 1.11 GB, free: 6.41 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/1.132, allocations: 103.1 kB / 1.11 GB, free: 6.293 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.182e-05/1.132, allocations: 0 / 1.11 GB, free: 6.293 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/1.132, allocations: 7.984 kB / 1.11 GB, free: 6.285 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.579e-05/1.132, allocations: 7.984 kB / 1.11 GB, free: 6.277 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/1.132, allocations: 0 / 1.11 GB, free: 6.277 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.000284/1.133, allocations: 196.2 kB / 1.11 GB, free: 6.086 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.31e-07/1.133, allocations: 0 / 1.11 GB, free: 6.086 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004313/1.133, allocations: 47.94 kB / 1.11 GB, free: 6.039 MB / 0.7136 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.001756/1.135, allocations: 0.9599 MB / 1.111 GB, free: 5.211 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003254/1.135, allocations: 67.97 kB / 1.111 GB, free: 5.145 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.135, allocations: 4.062 kB / 1.111 GB, free: 5.141 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001211/1.135, allocations: 43.92 kB / 1.111 GB, free: 5.098 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/1.136, allocations: 29.86 kB / 1.111 GB, free: 5.07 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009467/1.137, allocations: 293 kB / 1.111 GB, free: 4.75 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/1.137, allocations: 0.724 MB / 1.112 GB, free: 4 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0001679/1.137, allocations: 30.05 kB / 1.112 GB, free: 3.977 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/1.137, allocations: 47.41 kB / 1.112 GB, free: 3.93 MB / 0.7136 GB Notification: Performance of SimCode: time 1.253e-06/1.137, allocations: 4 kB / 1.112 GB, free: 3.926 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04257/1.18, allocations: 3.802 MB / 1.116 GB, free: 240 kB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003275/1.18, allocations: 166.3 kB / 1.116 GB, free: 48 kB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.46/3.64, allocations: 0 / 1.116 GB, free: 48 kB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)