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.025/2.025, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.0009853/0.0009854, allocations: 188.6 kB / 487.4 MB, free: 5.059 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.353/1.353, allocations: 221.5 MB / 0.7824 GB, free: 0.9648 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007888/0.0007887, allocations: 109 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.9e-05/1.903e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2488, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8442/1.093, allocations: 153 MB / 1.355 GB, free: 18.39 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/1.093, allocations: 77.23 kB / 1.355 GB, free: 18.39 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01409/1.107, allocations: 5.504 MB / 1.361 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.342e-06/1.107, allocations: 3.875 kB / 1.361 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.369e-05/1.107, allocations: 0 / 1.361 GB, free: 33.79 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.0004456/1.108, allocations: 465.9 kB / 1.361 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/1.108, allocations: 12.06 kB / 1.361 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.795e-05/1.108, allocations: 15.5 kB / 1.361 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003065/1.108, allocations: 264.8 kB / 1.361 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/1.108, allocations: 3.875 kB / 1.362 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/1.108, allocations: 3.844 kB / 1.362 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.705e-05/1.108, allocations: 32.69 kB / 1.362 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/1.109, allocations: 90.02 kB / 1.362 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/1.109, allocations: 0 / 1.362 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/1.109, allocations: 0 / 1.362 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/1.109, allocations: 3.875 kB / 1.362 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004107/1.109, allocations: 347.1 kB / 1.362 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001119/1.109, allocations: 78.5 kB / 1.362 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.033e-05/1.109, allocations: 29.72 kB / 1.362 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/1.109, allocations: 0 / 1.362 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001177/1.109, allocations: 85.53 kB / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.153e-06/1.109, allocations: 0 / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002296/1.11, allocations: 114.2 kB / 1.362 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/1.11, allocations: 102.8 kB / 1.362 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/1.11, allocations: 242.9 kB / 1.363 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/1.11, allocations: 25.7 kB / 1.363 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.416e-05/1.11, allocations: 112.4 kB / 1.363 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/1.11, allocations: 22.12 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/1.11, allocations: 4 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001098/1.11, allocations: 327.8 kB / 1.363 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.79e-05/1.11, allocations: 23.42 kB / 1.363 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.969e-05/1.11, allocations: 75.03 kB / 1.363 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.768e-05/1.11, allocations: 32.86 kB / 1.363 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/1.11, allocations: 7.938 kB / 1.363 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001506/1.11, allocations: 104 kB / 1.363 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/1.111, allocations: 3.844 kB / 1.363 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/1.111, allocations: 7.938 kB / 1.363 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/1.111, allocations: 3.969 kB / 1.363 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.644e-05/1.111, allocations: 14.81 kB / 1.363 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/1.111, allocations: 3.812 kB / 1.363 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.21e-05/1.111, allocations: 9.203 kB / 1.363 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-06/1.111, allocations: 3.875 kB / 1.363 GB, free: 31.91 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 8.095e-05/1.111, allocations: 114.8 kB / 1.363 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.312e-05/1.111, allocations: 15.5 kB / 1.363 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002033/1.111, allocations: 119.5 kB / 1.364 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.866e-06/1.111, allocations: 3.844 kB / 1.364 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/1.111, allocations: 1.547 kB / 1.364 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/1.111, allocations: 0 / 1.364 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/1.111, allocations: 215.3 kB / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/1.111, allocations: 0 / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.171e-05/1.111, allocations: 6.5 kB / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/1.111, allocations: 4 kB / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/1.111, allocations: 7.812 kB / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/1.111, allocations: 0 / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/1.111, allocations: 0 / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000167/1.112, allocations: 143.1 kB / 1.364 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.992e-05/1.112, allocations: 101 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.857e-05/1.112, allocations: 7.172 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.842e-05/1.112, allocations: 3.969 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/1.112, allocations: 13.45 kB / 1.364 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/1.112, allocations: 7.781 kB / 1.364 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001492/1.112, allocations: 188.5 kB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.71e-07/1.112, allocations: 0 / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002551/1.112, allocations: 49.3 kB / 1.364 GB, free: 31.31 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.0008092/1.113, allocations: 376.8 kB / 1.365 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001595/1.113, allocations: 72.73 kB / 1.365 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/1.113, allocations: 3.938 kB / 1.365 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.67e-05/1.113, allocations: 36.03 kB / 1.365 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002243/1.113, allocations: 30.94 kB / 1.365 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003434/1.114, allocations: 223.4 kB / 1.365 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/1.114, allocations: 0.7275 MB / 1.366 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.856e-05/1.114, allocations: 26.67 kB / 1.366 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.359e-05/1.114, allocations: 26.28 kB / 1.366 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.114, allocations: 3.938 kB / 1.366 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of Templates: time 0.004606/1.119, allocations: 2.342 MB / 1.368 GB, free: 30.05 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