Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator") translateModel(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7295/0.7295, allocations: 140.1 MB / 156 MB, free: 5.164 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001149/0.001148, allocations: 185.6 kB / 188.5 MB, free: 15.84 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.4 MB / 426.3 MB, free: 8.465 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007583/0.0007583, allocations: 90.36 kB / 0.4945 GB, free: 8.418 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001684/0.001684, allocations: 261.2 kB / 0.5728 GB, free: 66.25 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004905/0.0004905, allocations: 16 kB / 0.662 GB, free: 6.84 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3288, allocations: 79.32 MB / 0.7395 GB, free: 46.35 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1529/0.4817, allocations: 111.2 MB / 0.8481 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.482, allocations: 79.95 kB / 0.8481 GB, free: 14.94 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.02152/0.5036, allocations: 5.434 MB / 0.8534 GB, free: 9.5 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.124e-06/0.5036, allocations: 4 kB / 0.8534 GB, free: 9.496 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.065e-05/0.5037, allocations: 4 kB / 0.8534 GB, free: 9.492 MB / 0.5261 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.0007672/0.5044, allocations: 488.5 kB / 0.8539 GB, free: 8.957 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.5045, allocations: 19.91 kB / 0.8539 GB, free: 8.938 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.878e-05/0.5046, allocations: 12.75 kB / 0.8539 GB, free: 8.926 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004704/0.5051, allocations: 268.8 kB / 0.8542 GB, free: 8.621 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.5051, allocations: 4.375 kB / 0.8542 GB, free: 8.617 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.5051, allocations: 4.375 kB / 0.8542 GB, free: 8.613 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002659/0.5054, allocations: 100.7 kB / 0.8543 GB, free: 8.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.5054, allocations: 4.172 kB / 0.8543 GB, free: 8.496 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.5055, allocations: 3.938 kB / 0.8543 GB, free: 8.492 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.5055, allocations: 0 / 0.8543 GB, free: 8.492 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001455/0.5057, allocations: 35.98 kB / 0.8543 GB, free: 8.457 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007031/0.5064, allocations: 380.6 kB / 0.8547 GB, free: 8.035 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003112/0.5067, allocations: 94.69 kB / 0.8548 GB, free: 7.934 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.5068, allocations: 32.84 kB / 0.8548 GB, free: 7.898 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.5069, allocations: 7.984 kB / 0.8548 GB, free: 7.891 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.5071, allocations: 83.36 kB / 0.8549 GB, free: 7.797 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=8): time 1.944e-06/0.5071, allocations: 0 / 0.8549 GB, free: 7.797 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8): time 0.0004856/0.5076, allocations: 145.4 kB / 0.8551 GB, free: 7.648 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.5077, allocations: 102.8 kB / 0.8551 GB, free: 7.523 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004125/0.5081, allocations: 267 kB / 0.8554 GB, free: 7.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.5081, allocations: 25.7 kB / 0.8554 GB, free: 7.219 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.953e-05/0.5083, allocations: 120.1 kB / 0.8555 GB, free: 7.098 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.154e-05/0.5083, allocations: 27.69 kB / 0.8556 GB, free: 7.07 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-06/0.5083, allocations: 4 kB / 0.8556 GB, free: 7.066 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.5085, allocations: 334.8 kB / 0.8559 GB, free: 6.73 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.5086, allocations: 23.98 kB / 0.8559 GB, free: 6.707 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.5088, allocations: 72.27 kB / 0.856 GB, free: 6.621 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002154/0.509, allocations: 73.62 kB / 0.8561 GB, free: 6.543 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.509, allocations: 4 kB / 0.8561 GB, free: 6.539 MB / 0.5261 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003341/0.5094, allocations: 113.4 kB / 0.8562 GB, free: 6.422 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.5094, allocations: 8.188 kB / 0.8562 GB, free: 6.414 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.5094, allocations: 0 / 0.8562 GB, free: 6.414 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.5094, allocations: 3.938 kB / 0.8562 GB, free: 6.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.5096, allocations: 19.98 kB / 0.8562 GB, free: 6.391 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.5096, allocations: 0 / 0.8562 GB, free: 6.391 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.706e-05/0.5097, allocations: 4 kB / 0.8562 GB, free: 6.387 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.5097, allocations: 0 / 0.8562 GB, free: 6.387 MB / 0.5261 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.0001668/0.5099, allocations: 155.9 kB / 0.8563 GB, free: 6.227 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.431e-05/0.51, allocations: 15.81 kB / 0.8564 GB, free: 6.211 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003808/0.5104, allocations: 127 kB / 0.8565 GB, free: 6.082 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.5104, allocations: 7.984 kB / 0.8565 GB, free: 6.074 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.5104, allocations: 0 / 0.8565 GB, free: 6.074 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.5104, allocations: 0 / 0.8565 GB, free: 6.074 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002843/0.5107, allocations: 241.4 kB / 0.8567 GB, free: 5.789 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.5107, allocations: 0 / 0.8567 GB, free: 5.789 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.439e-05/0.5108, allocations: 8 kB / 0.8567 GB, free: 5.781 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.5108, allocations: 3.938 kB / 0.8567 GB, free: 5.777 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.5108, allocations: 7.984 kB / 0.8567 GB, free: 5.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.5109, allocations: 0 / 0.8567 GB, free: 5.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.5109, allocations: 0 / 0.8567 GB, free: 5.77 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003511/0.5112, allocations: 152.8 kB / 0.8569 GB, free: 5.602 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 9.942e-05/0.5113, allocations: 96.92 kB / 0.857 GB, free: 5.488 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.892e-05/0.5114, allocations: 3.984 kB / 0.857 GB, free: 5.484 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.954e-05/0.5115, allocations: 12 kB / 0.857 GB, free: 5.473 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.377e-05/0.5116, allocations: 11.92 kB / 0.857 GB, free: 5.461 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.5116, allocations: 8 kB / 0.857 GB, free: 5.453 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002718/0.5119, allocations: 196.6 kB / 0.8572 GB, free: 5.262 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2e-07/0.5119, allocations: 0 / 0.8572 GB, free: 5.262 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0004635/0.5124, allocations: 51.84 kB / 0.8573 GB, free: 5.211 MB / 0.5261 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.001387/0.5138, allocations: 438.6 kB / 0.8577 GB, free: 4.898 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003475/0.5141, allocations: 87.88 kB / 0.8578 GB, free: 4.812 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5141, allocations: 0 / 0.8578 GB, free: 4.812 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.5143, allocations: 39.98 kB / 0.8578 GB, free: 4.773 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004457/0.5148, allocations: 40 kB / 0.8578 GB, free: 4.734 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007101/0.5155, allocations: 326.1 kB / 0.8581 GB, free: 4.387 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.5158, allocations: 0.7243 MB / 0.8588 GB, free: 3.637 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0001263/0.516, allocations: 29.06 kB / 0.8589 GB, free: 3.609 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.85e-05/0.5161, allocations: 27.36 kB / 0.8589 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of SimCode: time 3.91e-07/0.5161, allocations: 0 / 0.8589 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of Templates: time 0.007664/0.5237, allocations: 2.522 MB / 0.8614 GB, free: 1.074 MB / 0.5261 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)