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.001267/0.001267, allocations: 115.3 kB / 16.37 MB, free: 6.34 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.001248/0.001248, allocations: 186 kB / 17.3 MB, free: 5.898 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.254/1.254, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002025/0.002025, allocations: 290.1 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9067/0.9067, allocations: 169.2 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 99.84 kB / 0.6821 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4563/0.4581, allocations: 86.97 MB / 0.767 GB, free: 3.969 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002836/0.4609, allocations: 1.774 MB / 0.7687 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001609/0.4626, allocations: 1.094 MB / 0.7698 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.778e-05/0.4626, allocations: 4 kB / 0.7698 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002872/0.4629, allocations: 63.72 kB / 0.7699 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002183/0.4632, allocations: 79.67 kB / 0.7699 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005704/0.4638, allocations: 228.2 kB / 0.7701 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001813/0.4639, allocations: 143.6 kB / 0.7703 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.4641, allocations: 29.11 kB / 0.7703 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 9.029e-05/0.4642, allocations: 63.7 kB / 0.7704 GB, free: 496 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.643e-05/0.4643, allocations: 63.7 kB / 0.7704 GB, free: 432 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.07e-05/0.4643, allocations: 8 kB / 0.7704 GB, free: 424 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.4644, allocations: 71.94 kB / 0.7705 GB, free: 352 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.667e-05/0.4645, allocations: 43.89 kB / 0.7706 GB, free: 308 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.755e-05/0.4646, allocations: 59.55 kB / 0.7706 GB, free: 248 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002657/0.4649, allocations: 199.1 kB / 0.7708 GB, free: 52 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4649, allocations: 0 / 0.7708 GB, free: 52 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.433e-06/0.4649, allocations: 4 kB / 0.7708 GB, free: 48 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.4649, allocations: 0 / 0.7708 GB, free: 48 kB / 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.0006079/0.4655, allocations: 490.9 kB / 0.7713 GB, free: 15.52 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.4656, allocations: 8.031 kB / 0.7713 GB, free: 15.51 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.623e-05/0.4656, allocations: 20.73 kB / 0.7713 GB, free: 15.49 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003045/0.4659, allocations: 256.8 kB / 0.7715 GB, free: 15.2 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.466, allocations: 384 / 0.7715 GB, free: 15.2 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.65e-05/0.466, allocations: 8.125 kB / 0.7716 GB, free: 15.19 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.4662, allocations: 92.23 kB / 0.7716 GB, free: 15.08 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.555e-06/0.4662, allocations: 3.938 kB / 0.7716 GB, free: 15.08 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.4662, allocations: 7.984 kB / 0.7716 GB, free: 15.07 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.4662, allocations: 4 kB / 0.7717 GB, free: 15.07 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.973e-05/0.4663, allocations: 27.98 kB / 0.7717 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004466/0.4668, allocations: 352.7 kB / 0.772 GB, free: 14.64 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/0.467, allocations: 94.69 kB / 0.7721 GB, free: 14.54 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.294e-05/0.4671, allocations: 28.84 kB / 0.7721 GB, free: 14.51 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.4671, allocations: 7.984 kB / 0.7721 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001543/0.4673, allocations: 83.38 kB / 0.7722 GB, free: 14.41 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.4673, allocations: 4 kB / 0.7722 GB, free: 14.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.0003286/0.4677, allocations: 137.4 kB / 0.7724 GB, free: 14.27 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.4677, allocations: 106.8 kB / 0.7725 GB, free: 14.14 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002407/0.468, allocations: 263.7 kB / 0.7727 GB, free: 13.87 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.468, allocations: 25.7 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.594e-05/0.4681, allocations: 116 kB / 0.7728 GB, free: 13.72 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.4681, allocations: 23.73 kB / 0.7729 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.69e-05/0.4681, allocations: 37.64 kB / 0.7729 GB, free: 13.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.4683, allocations: 330.8 kB / 0.7732 GB, free: 13.32 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.799e-05/0.4683, allocations: 23.98 kB / 0.7732 GB, free: 13.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.362e-05/0.4684, allocations: 72.27 kB / 0.7733 GB, free: 13.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001541/0.4686, allocations: 69.64 kB / 0.7734 GB, free: 13.14 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4686, allocations: 4 kB / 0.7734 GB, free: 13.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002052/0.4688, allocations: 113.4 kB / 0.7735 GB, free: 13.02 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.4688, allocations: 11.98 kB / 0.7735 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4688, allocations: 0 / 0.7735 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.4689, allocations: 0 / 0.7735 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.062e-05/0.469, allocations: 12 kB / 0.7735 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.469, allocations: 3.938 kB / 0.7735 GB, free: 12.99 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.246e-05/0.469, allocations: 11.92 kB / 0.7735 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/0.4691, allocations: 4 kB / 0.7735 GB, free: 12.98 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.0001215/0.4692, allocations: 147.8 kB / 0.7737 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.784e-05/0.4692, allocations: 15.81 kB / 0.7737 GB, free: 12.81 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.194e-05/0.4693, allocations: 21.8 kB / 0.7737 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.417e-06/0.4693, allocations: 3.984 kB / 0.7737 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.4693, allocations: 0 / 0.7737 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.4693, allocations: 3.938 kB / 0.7737 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.4695, allocations: 233.4 kB / 0.7739 GB, free: 12.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4695, allocations: 0 / 0.7739 GB, free: 12.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.799e-05/0.4695, allocations: 4 kB / 0.7739 GB, free: 12.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.4695, allocations: 0 / 0.7739 GB, free: 12.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.4696, allocations: 7.984 kB / 0.7739 GB, free: 12.49 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4696, allocations: 4 kB / 0.774 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.4696, allocations: 0 / 0.774 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002339/0.4698, allocations: 144.8 kB / 0.7741 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.462e-05/0.4699, allocations: 93 kB / 0.7742 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.4699, allocations: 0 / 0.7742 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.562e-05/0.47, allocations: 8 kB / 0.7742 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.32e-05/0.47, allocations: 7.984 kB / 0.7742 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.47, allocations: 7.938 kB / 0.7742 GB, free: 12.19 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000166/0.4702, allocations: 196.6 kB / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.373e-06/0.4702, allocations: 0 / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002425/0.4705, allocations: 39.84 kB / 0.7744 GB, free: 11.96 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.0009111/0.4714, allocations: 424 kB / 0.7748 GB, free: 11.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000211/0.4716, allocations: 67.95 kB / 0.7749 GB, free: 11.63 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4716, allocations: 4.062 kB / 0.7749 GB, free: 11.63 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.363e-05/0.4717, allocations: 35.92 kB / 0.7749 GB, free: 11.59 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.472, allocations: 46.52 kB / 0.775 GB, free: 11.55 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000501/0.4725, allocations: 320.7 kB / 0.7753 GB, free: 11.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.4728, allocations: 0.7162 MB / 0.776 GB, free: 10.46 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.562e-05/0.4728, allocations: 27.36 kB / 0.776 GB, free: 10.43 MB / 0.545 GB Notification: Performance of SimCode: time 3.2e-07/0.4729, allocations: 4 kB / 0.776 GB, free: 10.43 MB / 0.545 GB Notification: Performance of Templates: time 0.004201/0.4771, allocations: 2.599 MB / 0.7786 GB, free: 7.855 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)