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.001133/0.001133, allocations: 106.6 kB / 16.41 MB, free: 6.453 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.001171/0.001171, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.284/1.284, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002065/0.002065, allocations: 291.9 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9071/0.9071, allocations: 169.2 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 95.86 kB / 0.6821 GB, free: 6.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4191/0.421, allocations: 86.98 MB / 0.7671 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003145/0.4242, allocations: 1.762 MB / 0.7688 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001736/0.4259, allocations: 1.101 MB / 0.7699 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.426, allocations: 4 kB / 0.7699 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002933/0.4263, allocations: 55.73 kB / 0.7699 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002498/0.4266, allocations: 79.67 kB / 0.77 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006333/0.4273, allocations: 224 kB / 0.7702 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002253/0.4275, allocations: 147.6 kB / 0.7703 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.4276, allocations: 17.12 kB / 0.7704 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.4277, allocations: 71.62 kB / 0.7704 GB, free: 440 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.4279, allocations: 67.75 kB / 0.7705 GB, free: 372 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.4279, allocations: 11.94 kB / 0.7705 GB, free: 360 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001729/0.4281, allocations: 75.94 kB / 0.7706 GB, free: 284 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.494e-05/0.4282, allocations: 39.84 kB / 0.7706 GB, free: 244 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.105e-05/0.4282, allocations: 55.62 kB / 0.7707 GB, free: 188 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003129/0.4286, allocations: 203.2 kB / 0.7709 GB, free: 15.98 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.4286, allocations: 0 / 0.7709 GB, free: 15.98 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4286, allocations: 0 / 0.7709 GB, free: 15.98 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.4286, allocations: 0 / 0.7709 GB, free: 15.98 MB / 0.545 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.0006715/0.4293, allocations: 494.9 kB / 0.7713 GB, free: 15.45 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.4293, allocations: 11.97 kB / 0.7713 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.37e-05/0.4294, allocations: 16.75 kB / 0.7714 GB, free: 15.42 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003295/0.4297, allocations: 256.7 kB / 0.7716 GB, free: 15.13 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.4297, allocations: 384 / 0.7716 GB, free: 15.13 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.636e-05/0.4298, allocations: 8.125 kB / 0.7716 GB, free: 15.12 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002056/0.43, allocations: 96.17 kB / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.43, allocations: 4 kB / 0.7717 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.43, allocations: 3.984 kB / 0.7717 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.43, allocations: 4 kB / 0.7717 GB, free: 15 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.4301, allocations: 35.97 kB / 0.7717 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004896/0.4306, allocations: 352.6 kB / 0.7721 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.4309, allocations: 86.67 kB / 0.7722 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.193e-05/0.431, allocations: 32.84 kB / 0.7722 GB, free: 14.45 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.431, allocations: 7.984 kB / 0.7722 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001667/0.4312, allocations: 87.41 kB / 0.7723 GB, free: 14.34 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.4312, allocations: 0 / 0.7723 GB, free: 14.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.0003541/0.4315, allocations: 137.4 kB / 0.7724 GB, free: 14.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.005e-05/0.4316, allocations: 106.8 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.4319, allocations: 263.7 kB / 0.7728 GB, free: 13.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.4319, allocations: 25.7 kB / 0.7728 GB, free: 13.77 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.501e-05/0.432, allocations: 124 kB / 0.7729 GB, free: 13.65 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.432, allocations: 19.75 kB / 0.7729 GB, free: 13.63 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.622e-05/0.4321, allocations: 29.7 kB / 0.773 GB, free: 13.59 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4322, allocations: 330.8 kB / 0.7733 GB, free: 13.26 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.853e-05/0.4323, allocations: 23.98 kB / 0.7733 GB, free: 13.24 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.4324, allocations: 84.14 kB / 0.7734 GB, free: 13.14 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.4325, allocations: 65.7 kB / 0.7734 GB, free: 13.07 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4325, allocations: 0 / 0.7734 GB, free: 13.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002106/0.4328, allocations: 109.4 kB / 0.7735 GB, free: 12.96 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.4328, allocations: 8 kB / 0.7736 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.4328, allocations: 0 / 0.7736 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.4328, allocations: 4.031 kB / 0.7736 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.582e-05/0.4329, allocations: 19.98 kB / 0.7736 GB, free: 12.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.4329, allocations: 3.938 kB / 0.7736 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.477e-05/0.433, allocations: 7.938 kB / 0.7736 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.433, 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.0001309/0.4331, allocations: 149 kB / 0.7737 GB, free: 12.76 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.116e-05/0.4332, allocations: 19.8 kB / 0.7738 GB, free: 12.74 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.096e-05/0.4332, allocations: 17.41 kB / 0.7738 GB, free: 12.72 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.4332, allocations: 4 kB / 0.7738 GB, free: 12.72 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.4333, allocations: 4 kB / 0.7738 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.4333, allocations: 7.922 kB / 0.7738 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001943/0.4335, allocations: 233.4 kB / 0.774 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4335, allocations: 0 / 0.774 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.198e-05/0.4335, allocations: 4 kB / 0.774 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.4335, allocations: 0 / 0.774 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-06/0.4335, allocations: 0 / 0.774 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4335, allocations: 4 kB / 0.774 GB, free: 12.42 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.4336, allocations: 400 / 0.774 GB, free: 12.42 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002408/0.4338, allocations: 144.8 kB / 0.7742 GB, free: 12.26 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.914e-05/0.4339, allocations: 92.95 kB / 0.7742 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.906e-05/0.4339, allocations: 7.984 kB / 0.7742 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.334e-05/0.434, allocations: 4 kB / 0.7743 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.928e-05/0.434, allocations: 11.98 kB / 0.7743 GB, free: 12.13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.434, allocations: 7.938 kB / 0.7743 GB, free: 12.12 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001727/0.4342, allocations: 188.6 kB / 0.7745 GB, free: 11.94 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.31e-07/0.4342, allocations: 0 / 0.7745 GB, free: 11.94 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002488/0.4345, allocations: 43.89 kB / 0.7745 GB, free: 11.89 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.001024/0.4355, allocations: 426.2 kB / 0.7749 GB, free: 11.63 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002534/0.4358, allocations: 67.91 kB / 0.775 GB, free: 11.56 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4358, allocations: 0 / 0.775 GB, free: 11.56 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.327e-05/0.4359, allocations: 39.98 kB / 0.775 GB, free: 11.52 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.4362, allocations: 42.31 kB / 0.775 GB, free: 11.49 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005141/0.4367, allocations: 320.2 kB / 0.7753 GB, free: 11.14 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.437, allocations: 0.724 MB / 0.7761 GB, free: 10.39 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.943e-05/0.4371, allocations: 19.42 kB / 0.7761 GB, free: 10.38 MB / 0.545 GB Notification: Performance of SimCode: time 3.21e-07/0.4371, allocations: 0 / 0.7761 GB, free: 10.38 MB / 0.545 GB Notification: Performance of Templates: time 0.004675/0.4418, allocations: 2.615 MB / 0.7786 GB, free: 7.777 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)