Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.00124/0.00124, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 186.6 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.507/1.507, allocations: 205.1 MB / 222.5 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.695/0.695, allocations: 95.48 MB / 365.3 MB, free: 9.797 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 67.91 kB / 446.1 MB, free: 8.855 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3537, allocations: 69.08 MB / 0.5031 GB, free: 17.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.00268/0.3564, allocations: 1.733 MB / 0.5048 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.3576, allocations: 1.022 MB / 0.5058 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.92e-05/0.3577, allocations: 4 kB / 0.5058 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002786/0.358, allocations: 55.67 kB / 0.5059 GB, free: 14.49 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.3582, allocations: 79.66 kB / 0.5059 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004506/0.3587, allocations: 198.7 kB / 0.5061 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001657/0.3588, allocations: 147.6 kB / 0.5063 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.359, allocations: 21.11 kB / 0.5063 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.853e-05/0.359, allocations: 63.75 kB / 0.5063 GB, free: 14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.093e-05/0.3591, allocations: 71.69 kB / 0.5064 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.864e-05/0.3592, allocations: 8 kB / 0.5064 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.3593, allocations: 67.97 kB / 0.5065 GB, free: 13.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.79e-05/0.3594, allocations: 43.83 kB / 0.5065 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.093e-05/0.3595, allocations: 55.61 kB / 0.5066 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.3597, allocations: 209 kB / 0.5068 GB, free: 13.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3597, allocations: 0 / 0.5068 GB, free: 13.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3597, allocations: 0 / 0.5068 GB, free: 13.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.3597, allocations: 0 / 0.5068 GB, free: 13.55 MB / 382.1 MB 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.0005259/0.3602, allocations: 496.3 kB / 0.5073 GB, free: 13.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.3603, allocations: 11.98 kB / 0.5073 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/0.3603, allocations: 16.75 kB / 0.5073 GB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002641/0.3606, allocations: 264.8 kB / 0.5075 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.3606, allocations: 0 / 0.5075 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.3607, allocations: 8 kB / 0.5075 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001713/0.3608, allocations: 88.23 kB / 0.5076 GB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.3608, allocations: 3.938 kB / 0.5076 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.3609, allocations: 4 kB / 0.5076 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.3609, allocations: 4 kB / 0.5076 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001063/0.361, allocations: 35.97 kB / 0.5077 GB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004232/0.3614, allocations: 348.8 kB / 0.508 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.3616, allocations: 90.69 kB / 0.5081 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.757e-05/0.3617, allocations: 36.84 kB / 0.5081 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.3618, allocations: 0 / 0.5081 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001537/0.3619, allocations: 79.38 kB / 0.5082 GB, free: 11.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.502e-06/0.3619, allocations: 0 / 0.5082 GB, free: 11.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003274/0.3623, allocations: 145.3 kB / 0.5083 GB, free: 11.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.3623, allocations: 102.8 kB / 0.5084 GB, free: 11.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.3625, allocations: 268.3 kB / 0.5087 GB, free: 11.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.3625, allocations: 29.7 kB / 0.5087 GB, free: 11.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.623e-05/0.3626, allocations: 124 kB / 0.5088 GB, free: 11.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.3626, allocations: 23.78 kB / 0.5089 GB, free: 11.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-05/0.3627, allocations: 21.72 kB / 0.5089 GB, free: 11.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.171e-05/0.3627, allocations: 330.8 kB / 0.5092 GB, free: 10.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.577e-05/0.3628, allocations: 27.98 kB / 0.5092 GB, free: 10.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.723e-05/0.3629, allocations: 72.22 kB / 0.5093 GB, free: 10.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.363, allocations: 73.62 kB / 0.5094 GB, free: 10.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.363, allocations: 0 / 0.5094 GB, free: 10.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001779/0.3632, allocations: 113.4 kB / 0.5095 GB, free: 10.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.3632, allocations: 8 kB / 0.5095 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3633, allocations: 0 / 0.5095 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.3633, allocations: 7.969 kB / 0.5095 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.253e-05/0.3634, allocations: 15.98 kB / 0.5095 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3634, allocations: 0 / 0.5095 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.17e-05/0.3635, allocations: 11.89 kB / 0.5095 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.3635, allocations: 4 kB / 0.5095 GB, free: 10.47 MB / 382.1 MB 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 9.405e-05/0.3636, allocations: 145.8 kB / 0.5097 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.437e-05/0.3636, allocations: 15.81 kB / 0.5097 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.89e-05/0.3636, allocations: 25.33 kB / 0.5097 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.3637, allocations: 4.031 kB / 0.5097 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3637, allocations: 4 kB / 0.5097 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3637, allocations: 0 / 0.5097 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.3638, allocations: 221.6 kB / 0.5099 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3638, allocations: 3.938 kB / 0.5099 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.756e-05/0.3639, allocations: 7.984 kB / 0.5099 GB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3639, allocations: 0 / 0.5099 GB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.3639, allocations: 7.938 kB / 0.5099 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3639, allocations: 0 / 0.5099 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3639, allocations: 0 / 0.5099 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000203/0.3641, allocations: 140.9 kB / 0.5101 GB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.38e-05/0.3642, allocations: 96.92 kB / 0.5102 GB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.3642, allocations: 3.938 kB / 0.5102 GB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.288e-05/0.3642, allocations: 7.984 kB / 0.5102 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.168e-05/0.3643, allocations: 11.98 kB / 0.5102 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.3643, allocations: 4 kB / 0.5102 GB, free: 9.691 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.3645, allocations: 192.4 kB / 0.5104 GB, free: 9.504 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3645, allocations: 3.938 kB / 0.5104 GB, free: 9.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002419/0.3647, allocations: 39.98 kB / 0.5104 GB, free: 9.461 MB / 382.1 MB 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.0009761/0.3657, allocations: 432.7 kB / 0.5108 GB, free: 9.184 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000203/0.3659, allocations: 71.95 kB / 0.5109 GB, free: 9.113 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3659, allocations: 0 / 0.5109 GB, free: 9.113 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.119e-05/0.366, allocations: 35.92 kB / 0.5109 GB, free: 9.078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.3663, allocations: 39.06 kB / 0.511 GB, free: 9.043 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004539/0.3668, allocations: 290.9 kB / 0.5112 GB, free: 8.734 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001562/0.3669, allocations: 0.724 MB / 0.512 GB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.772e-05/0.367, allocations: 17.39 kB / 0.512 GB, free: 7.965 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.883e-05/0.3671, allocations: 19.44 kB / 0.512 GB, free: 7.949 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3671, allocations: 4 kB / 0.512 GB, free: 7.945 MB / 382.1 MB Notification: Performance of Templates: time 0.004961/0.372, allocations: 2.54 MB / 0.5145 GB, free: 5.426 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)