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.004886/0.004886, allocations: 98.39 kB / 15.73 MB, free: 5.535 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.001131/0.001131, allocations: 185 kB / 16.67 MB, free: 5.473 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.298/1.298, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002012/0.002012, allocations: 287.1 kB / 290.8 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.9232/0.9232, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 107.8 kB / 0.6815 GB, free: 6.938 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4419/0.4436, allocations: 86.96 MB / 0.7664 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003564/0.4472, allocations: 1.77 MB / 0.7681 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001698/0.4489, allocations: 1.105 MB / 0.7692 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.59e-05/0.449, allocations: 3.938 kB / 0.7692 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0003172/0.4494, allocations: 63.67 kB / 0.7693 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002458/0.4496, allocations: 75.67 kB / 0.7693 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005665/0.4502, allocations: 218.7 kB / 0.7695 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002183/0.4504, allocations: 151.6 kB / 0.7697 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.4506, allocations: 21.11 kB / 0.7697 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.4507, allocations: 67.75 kB / 0.7698 GB, free: 460 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.4508, allocations: 63.75 kB / 0.7698 GB, free: 396 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.4508, allocations: 4 kB / 0.7698 GB, free: 392 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.451, allocations: 75.89 kB / 0.7699 GB, free: 316 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.725e-05/0.451, allocations: 39.84 kB / 0.7699 GB, free: 276 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.114e-05/0.4511, allocations: 55.67 kB / 0.77 GB, free: 220 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002931/0.4514, allocations: 203 kB / 0.7702 GB, free: 20 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.4514, allocations: 4 kB / 0.7702 GB, free: 16 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.954e-06/0.4514, allocations: 0 / 0.7702 GB, free: 16 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.144e-05/0.4515, allocations: 0 / 0.7702 GB, free: 16 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.0007032/0.4522, allocations: 494.8 kB / 0.7707 GB, free: 15.48 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.4522, allocations: 8.031 kB / 0.7707 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.078e-05/0.4523, allocations: 16.75 kB / 0.7707 GB, free: 15.46 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.4526, allocations: 252.9 kB / 0.7709 GB, free: 15.17 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/0.4526, allocations: 8.312 kB / 0.7709 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.4527, allocations: 16.12 kB / 0.771 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001996/0.4529, allocations: 84.23 kB / 0.771 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.4529, allocations: 4 kB / 0.771 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.4529, allocations: 0 / 0.771 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.4529, allocations: 0 / 0.771 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.453, allocations: 43.91 kB / 0.7711 GB, free: 15 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004637/0.4535, allocations: 360.7 kB / 0.7714 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002122/0.4537, allocations: 86.69 kB / 0.7715 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.46e-05/0.4538, allocations: 36.83 kB / 0.7715 GB, free: 14.46 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.4538, allocations: 3.938 kB / 0.7715 GB, free: 14.46 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000156/0.454, allocations: 87.38 kB / 0.7716 GB, free: 14.36 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.492e-06/0.454, allocations: 0 / 0.7716 GB, free: 14.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.0003431/0.4544, allocations: 141.4 kB / 0.7718 GB, free: 14.22 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.4544, allocations: 106.8 kB / 0.7719 GB, free: 14.09 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.4547, allocations: 263.7 kB / 0.7721 GB, free: 13.82 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.4547, allocations: 29.7 kB / 0.7721 GB, free: 13.79 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.366e-05/0.4548, allocations: 116 kB / 0.7723 GB, free: 13.67 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.785e-05/0.4548, allocations: 23.73 kB / 0.7723 GB, free: 13.65 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.698e-05/0.4549, allocations: 25.72 kB / 0.7723 GB, free: 13.62 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.455, allocations: 338.7 kB / 0.7726 GB, free: 13.28 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.321e-05/0.4551, allocations: 27.98 kB / 0.7727 GB, free: 13.25 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.664e-05/0.4552, allocations: 64.28 kB / 0.7727 GB, free: 13.17 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001478/0.4554, allocations: 73.62 kB / 0.7728 GB, free: 13.09 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.4554, allocations: 4 kB / 0.7728 GB, free: 13.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002022/0.4556, allocations: 113.5 kB / 0.7729 GB, free: 12.97 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.4556, allocations: 4 kB / 0.7729 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4556, allocations: 0 / 0.7729 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.4556, allocations: 4 kB / 0.7729 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.742e-05/0.4557, allocations: 15.92 kB / 0.7729 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.4557, allocations: 0 / 0.7729 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.977e-05/0.4558, allocations: 7.938 kB / 0.7729 GB, free: 12.94 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.4558, allocations: 4 kB / 0.7729 GB, free: 12.94 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.0001223/0.4559, allocations: 147.7 kB / 0.7731 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/0.456, allocations: 15.81 kB / 0.7731 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.71e-05/0.456, allocations: 17.39 kB / 0.7731 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.456, allocations: 4 kB / 0.7731 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.456, allocations: 0 / 0.7731 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.4561, allocations: 3.938 kB / 0.7731 GB, free: 12.74 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.4562, allocations: 225.4 kB / 0.7733 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.4562, allocations: 0 / 0.7733 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.288e-05/0.4563, allocations: 11.98 kB / 0.7733 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4563, allocations: 4 kB / 0.7733 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.4563, allocations: 0 / 0.7733 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.4563, allocations: 7.938 kB / 0.7733 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4563, allocations: 0 / 0.7733 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.4566, allocations: 149.4 kB / 0.7735 GB, free: 12.29 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.273e-05/0.4566, allocations: 89.02 kB / 0.7736 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.828e-05/0.4567, allocations: 7.938 kB / 0.7736 GB, free: 12.17 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.525e-05/0.4567, allocations: 3.984 kB / 0.7736 GB, free: 12.17 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.4568, allocations: 15.98 kB / 0.7736 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.4568, allocations: 7.938 kB / 0.7736 GB, free: 12.14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001667/0.457, allocations: 192.6 kB / 0.7738 GB, free: 11.96 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.457, allocations: 0 / 0.7738 GB, free: 11.96 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002342/0.4572, allocations: 35.89 kB / 0.7738 GB, free: 11.92 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.0008945/0.4581, allocations: 427 kB / 0.7742 GB, free: 11.66 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002064/0.4583, allocations: 75.91 kB / 0.7743 GB, free: 11.59 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4583, allocations: 0 / 0.7743 GB, free: 11.59 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.671e-05/0.4584, allocations: 39.86 kB / 0.7743 GB, free: 11.55 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.4587, allocations: 43.27 kB / 0.7744 GB, free: 11.51 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004647/0.4592, allocations: 290.9 kB / 0.7747 GB, free: 11.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.4595, allocations: 0.728 MB / 0.7754 GB, free: 10.44 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.004e-05/0.4596, allocations: 25.36 kB / 0.7754 GB, free: 10.42 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.173e-05/0.4596, allocations: 19.44 kB / 0.7754 GB, free: 10.4 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4596, allocations: 0 / 0.7754 GB, free: 10.4 MB / 0.545 GB Notification: Performance of Templates: time 0.005147/0.4648, allocations: 2.542 MB / 0.7779 GB, free: 7.898 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)