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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 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.839/0.839, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009379/0.0009381, allocations: 186.3 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 221.3 MB / 441.4 MB, free: 4.586 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009024/0.0009025, allocations: 96.78 kB / 0.5124 GB, free: 24.17 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001879/0.001879, allocations: 287.1 kB / 0.594 GB, free: 7.934 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.302e-05, allocations: 4 kB / 0.6834 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4174/0.4174, allocations: 82.78 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.5429, allocations: 113 MB / 0.8746 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.5432, allocations: 79.83 kB / 0.8747 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01459/0.5578, allocations: 5.525 MB / 0.8801 GB, free: 5.914 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5578, allocations: 0 / 0.8801 GB, free: 5.914 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.649e-05/0.5579, allocations: 8 kB / 0.8801 GB, free: 5.906 MB / 0.5417 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.00056/0.5584, allocations: 459.7 kB / 0.8806 GB, free: 5.406 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.5585, allocations: 8.031 kB / 0.8806 GB, free: 5.398 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.342e-05/0.5585, allocations: 15.81 kB / 0.8806 GB, free: 5.383 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003961/0.5589, allocations: 267.5 kB / 0.8808 GB, free: 5.078 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.559, allocations: 7.984 kB / 0.8809 GB, free: 5.07 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.306e-05/0.559, allocations: 8 kB / 0.8809 GB, free: 5.062 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001911/0.5592, allocations: 92.19 kB / 0.8809 GB, free: 4.957 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.5592, allocations: 0 / 0.8809 GB, free: 4.957 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.5592, allocations: 3.984 kB / 0.881 GB, free: 4.953 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/0.5593, allocations: 4 kB / 0.881 GB, free: 4.949 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.075e-05/0.5593, allocations: 31.94 kB / 0.881 GB, free: 4.918 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005662/0.5599, allocations: 372.6 kB / 0.8813 GB, free: 4.504 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/0.5601, allocations: 94.64 kB / 0.8814 GB, free: 4.402 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.521e-05/0.5601, allocations: 36.91 kB / 0.8815 GB, free: 4.363 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.5602, allocations: 0 / 0.8815 GB, free: 4.363 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001343/0.5603, allocations: 72.41 kB / 0.8815 GB, free: 4.281 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.5603, allocations: 0 / 0.8815 GB, free: 4.281 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8): time 0.0002418/0.5606, allocations: 121.4 kB / 0.8817 GB, free: 4.156 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.5607, allocations: 106.8 kB / 0.8818 GB, free: 4.027 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002591/0.5609, allocations: 237.7 kB / 0.882 GB, free: 3.789 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.561, allocations: 37.77 kB / 0.882 GB, free: 3.746 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.561, allocations: 112.1 kB / 0.8821 GB, free: 3.633 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.5611, allocations: 19.72 kB / 0.8821 GB, free: 3.613 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.93e-06/0.5611, allocations: 0 / 0.8821 GB, free: 3.613 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.5612, allocations: 334.8 kB / 0.8825 GB, free: 3.277 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.76e-05/0.5613, allocations: 28 kB / 0.8825 GB, free: 3.25 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.383e-05/0.5614, allocations: 76.2 kB / 0.8826 GB, free: 3.16 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.933e-05/0.5614, allocations: 34.56 kB / 0.8826 GB, free: 3.129 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.5614, allocations: 0 / 0.8826 GB, free: 3.129 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001789/0.5616, allocations: 109.5 kB / 0.8827 GB, free: 3.016 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.5616, allocations: 7.938 kB / 0.8827 GB, free: 3.008 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.5616, allocations: 4.031 kB / 0.8827 GB, free: 3.004 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.5617, allocations: 0 / 0.8827 GB, free: 3.004 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.557e-05/0.5618, allocations: 12 kB / 0.8827 GB, free: 2.992 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.5618, allocations: 0 / 0.8827 GB, free: 2.992 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.069e-05/0.5619, allocations: 19.86 kB / 0.8827 GB, free: 2.973 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.5619, allocations: 4 kB / 0.8827 GB, free: 2.969 MB / 0.5417 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 9.466e-05/0.562, allocations: 116.9 kB / 0.8829 GB, free: 2.848 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.562, allocations: 15.81 kB / 0.8829 GB, free: 2.832 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002298/0.5622, allocations: 131.1 kB / 0.883 GB, free: 2.699 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.5623, allocations: 4 kB / 0.883 GB, free: 2.695 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.5623, allocations: 192 / 0.883 GB, free: 2.695 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.5623, allocations: 0 / 0.883 GB, free: 2.695 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002042/0.5625, allocations: 233.5 kB / 0.8832 GB, free: 2.418 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.5625, allocations: 0 / 0.8832 GB, free: 2.418 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.603e-05/0.5626, allocations: 7.984 kB / 0.8832 GB, free: 2.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.5626, allocations: 0 / 0.8832 GB, free: 2.41 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.5626, allocations: 4 kB / 0.8832 GB, free: 2.406 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.5626, allocations: 0 / 0.8832 GB, free: 2.406 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5626, allocations: 0 / 0.8832 GB, free: 2.406 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.5628, allocations: 160.8 kB / 0.8834 GB, free: 2.23 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 8.237e-05/0.5629, allocations: 100.9 kB / 0.8835 GB, free: 2.113 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.829e-05/0.5629, allocations: 3.984 kB / 0.8835 GB, free: 2.109 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.939e-05/0.563, allocations: 4 kB / 0.8835 GB, free: 2.105 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.728e-05/0.563, allocations: 11.98 kB / 0.8835 GB, free: 2.094 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.5631, allocations: 4 kB / 0.8835 GB, free: 2.09 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001808/0.5633, allocations: 192.4 kB / 0.8837 GB, free: 1.902 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5633, allocations: 4 kB / 0.8837 GB, free: 1.898 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002498/0.5635, allocations: 59.77 kB / 0.8837 GB, free: 1.84 MB / 0.5417 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.0008885/0.5644, allocations: 395.9 kB / 0.8841 GB, free: 1.574 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000191/0.5646, allocations: 81.78 kB / 0.8842 GB, free: 1.496 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5646, allocations: 0 / 0.8842 GB, free: 1.496 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 8.022e-05/0.5647, allocations: 32 kB / 0.8842 GB, free: 1.465 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.565, allocations: 45 kB / 0.8843 GB, free: 1.422 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004392/0.5654, allocations: 218.3 kB / 0.8845 GB, free: 1.188 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.5657, allocations: 0.7281 MB / 0.8852 GB, free: 444 kB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.619e-05/0.5658, allocations: 32.02 kB / 0.8852 GB, free: 412 kB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.945e-05/0.5659, allocations: 19.42 kB / 0.8852 GB, free: 392 kB / 0.5417 GB Notification: Performance of SimCode: time 5.61e-07/0.5659, allocations: 4 kB / 0.8853 GB, free: 388 kB / 0.5417 GB Notification: Performance of Templates: time 0.005387/0.5713, allocations: 2.489 MB / 0.8877 GB, free: 13.93 MB / 0.5573 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)