Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.236/2.236, allocations: 387.1 MB / 399.7 MB, free: 9.492 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 176.9 kB / 492.3 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 221.3 MB / 0.7871 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000966/0.0009661, allocations: 92.89 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.604e-05/3.658e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.319, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.243/1.562, allocations: 153.6 MB / 1.362 GB, free: 18.94 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/1.563, allocations: 81.03 kB / 1.362 GB, free: 18.94 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01424/1.577, allocations: 5.53 MB / 1.368 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.084e-06/1.577, allocations: 0 / 1.368 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.084e-05/1.577, allocations: 4 kB / 1.368 GB, free: 34.33 MB / 0.8386 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.0005196/1.578, allocations: 471.4 kB / 1.368 GB, free: 33.9 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/1.578, allocations: 7.656 kB / 1.368 GB, free: 33.9 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.697e-05/1.578, allocations: 15.53 kB / 1.368 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003465/1.578, allocations: 264.6 kB / 1.369 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/1.578, allocations: 3.188 kB / 1.369 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/1.578, allocations: 11.23 kB / 1.369 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000173/1.578, allocations: 94.09 kB / 1.369 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/1.578, allocations: 3.938 kB / 1.369 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/1.578, allocations: 0 / 1.369 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/1.578, allocations: 3.938 kB / 1.369 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.027e-05/1.578, allocations: 35.44 kB / 1.369 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006206/1.579, allocations: 369.6 kB / 1.369 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/1.579, allocations: 89.81 kB / 1.369 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.6e-05/1.579, allocations: 31.94 kB / 1.369 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/1.579, allocations: 0 / 1.369 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001728/1.579, allocations: 78.88 kB / 1.369 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/1.579, allocations: 0 / 1.369 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002836/1.58, allocations: 128.6 kB / 1.369 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/1.58, allocations: 102.8 kB / 1.37 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/1.58, allocations: 246.1 kB / 1.37 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/1.58, allocations: 28.89 kB / 1.37 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.333e-05/1.58, allocations: 112 kB / 1.37 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.402e-05/1.58, allocations: 22.75 kB / 1.37 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/1.58, allocations: 3.25 kB / 1.37 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001269/1.58, allocations: 331.5 kB / 1.37 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.588e-05/1.58, allocations: 30.08 kB / 1.37 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.886e-05/1.581, allocations: 72.72 kB / 1.37 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.539e-05/1.581, allocations: 31.8 kB / 1.37 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/1.581, allocations: 3.938 kB / 1.37 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001634/1.581, allocations: 106.4 kB / 1.37 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/1.581, allocations: 4.781 kB / 1.37 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/1.581, allocations: 11.08 kB / 1.37 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/1.581, allocations: 0 / 1.37 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/1.581, allocations: 15.47 kB / 1.37 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/1.581, allocations: 3.953 kB / 1.371 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.82e-05/1.581, allocations: 11.23 kB / 1.371 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/1.581, allocations: 3.844 kB / 1.371 GB, free: 32.42 MB / 0.8386 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 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001109/1.581, allocations: 109.5 kB / 1.371 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.868e-05/1.581, allocations: 15.53 kB / 1.371 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002475/1.582, allocations: 134.6 kB / 1.371 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/1.582, allocations: 7.875 kB / 1.371 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/1.582, allocations: 0 / 1.371 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/1.582, allocations: 3.953 kB / 1.371 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001989/1.582, allocations: 229.9 kB / 1.371 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/1.582, allocations: 0 / 1.371 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.419e-05/1.582, allocations: 7.75 kB / 1.371 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.309e-06/1.582, allocations: 3.281 kB / 1.371 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/1.582, allocations: 3.875 kB / 1.371 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/1.582, allocations: 0 / 1.371 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/1.582, allocations: 4 kB / 1.371 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/1.582, allocations: 153.5 kB / 1.371 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.652e-05/1.582, allocations: 101.8 kB / 1.371 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.365e-05/1.582, allocations: 3.969 kB / 1.371 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.838e-05/1.582, allocations: 5.516 kB / 1.371 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.515e-05/1.582, allocations: 10.86 kB / 1.371 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/1.582, allocations: 11.16 kB / 1.371 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001998/1.583, allocations: 200.6 kB / 1.371 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.583, allocations: 0 / 1.371 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003079/1.583, allocations: 52.16 kB / 1.372 GB, free: 31.77 MB / 0.8386 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.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009108/1.584, allocations: 395.1 kB / 1.372 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001926/1.584, allocations: 82.84 kB / 1.372 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/1.584, allocations: 0 / 1.372 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.536e-05/1.584, allocations: 34.73 kB / 1.372 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/1.584, allocations: 37.62 kB / 1.372 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004849/1.585, allocations: 219.4 kB / 1.372 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/1.585, allocations: 0.7292 MB / 1.373 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.116e-05/1.585, allocations: 23.39 kB / 1.373 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.164e-05/1.586, allocations: 25.58 kB / 1.373 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.586, allocations: 0 / 1.373 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of Templates: time 0.005457/1.591, allocations: 2.49 MB / 1.375 GB, free: 30.52 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches