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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 110.3 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001852/0.001852, allocations: 189.2 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002512/0.002512, allocations: 283.9 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.007/1.007, allocations: 169.2 MB / 0.499 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002776/0.002776, allocations: 99.84 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4383/0.4411, allocations: 86.97 MB / 0.7671 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003287/0.4444, allocations: 1.762 MB / 0.7688 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001883/0.4463, allocations: 1.105 MB / 0.7699 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.73e-05/0.4464, allocations: 0 / 0.7699 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0003259/0.4467, allocations: 63.67 kB / 0.7699 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.000248/0.4469, allocations: 87.66 kB / 0.77 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006108/0.4476, allocations: 223.2 kB / 0.7702 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002125/0.4478, allocations: 143.6 kB / 0.7704 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.4479, allocations: 21.09 kB / 0.7704 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.448, allocations: 59.72 kB / 0.7704 GB, free: 452 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.4481, allocations: 63.75 kB / 0.7705 GB, free: 388 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.4481, allocations: 12 kB / 0.7705 GB, free: 376 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.4483, allocations: 79.88 kB / 0.7706 GB, free: 296 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.11e-05/0.4483, allocations: 35.84 kB / 0.7706 GB, free: 260 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.885e-05/0.4484, allocations: 55.66 kB / 0.7707 GB, free: 204 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003005/0.4487, allocations: 204.9 kB / 0.7709 GB, free: 8 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.4487, allocations: 0 / 0.7709 GB, free: 8 kB / 0.5294 GB Notification: Performance of FrontEnd: time 9.32e-07/0.4487, allocations: 4 kB / 0.7709 GB, free: 4 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.4487, allocations: 3.938 kB / 0.7709 GB, free: 0 / 0.5294 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.0007238/0.4495, allocations: 500 kB / 0.7713 GB, free: 15.46 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.4495, allocations: 20.02 kB / 0.7714 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.521e-05/0.4495, allocations: 12.84 kB / 0.7714 GB, free: 15.43 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003356/0.4499, allocations: 249 kB / 0.7716 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.4499, allocations: 4.375 kB / 0.7716 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.878e-05/0.4499, allocations: 12.12 kB / 0.7716 GB, free: 15.12 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.4501, allocations: 96.16 kB / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.4501, allocations: 0 / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.4501, allocations: 4 kB / 0.7717 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.4502, allocations: 0 / 0.7717 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.4503, allocations: 39.97 kB / 0.7718 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005717/0.4509, allocations: 356.6 kB / 0.7721 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.4511, allocations: 78.66 kB / 0.7722 GB, free: 14.49 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.109e-05/0.4512, allocations: 32.84 kB / 0.7722 GB, free: 14.45 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.4512, allocations: 0 / 0.7722 GB, free: 14.45 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001881/0.4514, allocations: 95.39 kB / 0.7723 GB, free: 14.35 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.423e-06/0.4514, allocations: 0 / 0.7723 GB, free: 14.35 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.0003874/0.4518, allocations: 133.6 kB / 0.7724 GB, free: 14.21 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.529e-05/0.4518, allocations: 102.8 kB / 0.7725 GB, free: 14.09 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003001/0.4522, allocations: 275.6 kB / 0.7728 GB, free: 13.81 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.4522, allocations: 25.7 kB / 0.7728 GB, free: 13.78 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.23e-05/0.4523, allocations: 112.1 kB / 0.7729 GB, free: 13.66 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.284e-05/0.4523, allocations: 23.8 kB / 0.7729 GB, free: 13.64 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.301e-05/0.4524, allocations: 33.69 kB / 0.773 GB, free: 13.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001666/0.4525, allocations: 334.7 kB / 0.7733 GB, free: 13.27 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.153e-05/0.4526, allocations: 27.92 kB / 0.7733 GB, free: 13.24 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.4527, allocations: 72.27 kB / 0.7734 GB, free: 13.15 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.4529, allocations: 65.7 kB / 0.7735 GB, free: 13.08 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.4529, allocations: 192 / 0.7735 GB, free: 13.08 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002276/0.4531, allocations: 117.8 kB / 0.7736 GB, free: 12.96 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.4531, allocations: 7.938 kB / 0.7736 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.4531, allocations: 4.078 kB / 0.7736 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.4531, allocations: 0 / 0.7736 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.371e-05/0.4532, allocations: 12.03 kB / 0.7736 GB, free: 12.94 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.4532, allocations: 11.92 kB / 0.7736 GB, free: 12.93 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.977e-05/0.4533, allocations: 15.92 kB / 0.7736 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-06/0.4533, allocations: 0 / 0.7736 GB, free: 12.91 MB / 0.545 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 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001539/0.4535, allocations: 146.1 kB / 0.7738 GB, free: 12.76 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.107e-05/0.4535, allocations: 15.91 kB / 0.7738 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.78e-05/0.4536, allocations: 21.39 kB / 0.7738 GB, free: 12.72 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.4536, allocations: 4 kB / 0.7738 GB, free: 12.72 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4536, allocations: 4 kB / 0.7738 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.4536, allocations: 3.938 kB / 0.7738 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002294/0.4538, allocations: 221.5 kB / 0.774 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.4538, allocations: 0 / 0.774 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.016e-05/0.4538, allocations: 8 kB / 0.774 GB, free: 12.44 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.4538, allocations: 0 / 0.774 GB, free: 12.44 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.4539, allocations: 7.984 kB / 0.774 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.4539, allocations: 0 / 0.774 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4539, allocations: 0 / 0.774 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002731/0.4541, allocations: 148.9 kB / 0.7742 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.308e-05/0.4542, allocations: 96.95 kB / 0.7743 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.4543, allocations: 0 / 0.7743 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.022e-05/0.4543, allocations: 8 kB / 0.7743 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/0.4544, allocations: 3.984 kB / 0.7743 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.4544, allocations: 7.938 kB / 0.7743 GB, free: 12.13 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002259/0.4546, allocations: 196.6 kB / 0.7745 GB, free: 11.94 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.4546, allocations: 0 / 0.7745 GB, free: 11.94 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000268/0.4549, allocations: 35.92 kB / 0.7745 GB, free: 11.91 MB / 0.545 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.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001623/0.4565, allocations: 430.2 kB / 0.7749 GB, free: 11.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002461/0.4567, allocations: 71.89 kB / 0.775 GB, free: 11.57 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4567, allocations: 0 / 0.775 GB, free: 11.57 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.508e-05/0.4568, allocations: 31.97 kB / 0.775 GB, free: 11.54 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/0.4571, allocations: 42.66 kB / 0.7751 GB, free: 11.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000611/0.4577, allocations: 294.7 kB / 0.7753 GB, free: 11.18 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.4582, allocations: 0.724 MB / 0.776 GB, free: 10.43 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.627e-05/0.4583, allocations: 25.38 kB / 0.7761 GB, free: 10.41 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.325e-05/0.4584, allocations: 23.42 kB / 0.7761 GB, free: 10.39 MB / 0.545 GB Notification: Performance of SimCode: time 3.91e-07/0.4584, allocations: 0 / 0.7761 GB, free: 10.39 MB / 0.545 GB Notification: Performance of Templates: time 0.006601/0.465, allocations: 2.551 MB / 0.7786 GB, free: 7.879 MB / 0.545 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)