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.255/2.255, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001357/0.001357, allocations: 183 kB / 498.1 MB, free: 5.762 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.677/1.677, allocations: 223.2 MB / 0.7948 GB, free: 17.91 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.001307/0.001307, allocations: 98.75 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003486, allocations: 10.31 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2508, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1861/0.437, allocations: 153.7 MB / 1.373 GB, free: 8.387 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.4373, allocations: 79.95 kB / 1.373 GB, free: 8.309 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01541/0.4527, allocations: 5.554 MB / 1.378 GB, free: 2.75 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.034e-06/0.4527, allocations: 4 kB / 1.378 GB, free: 2.746 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.806e-05/0.4528, allocations: 4 kB / 1.378 GB, free: 2.742 MB / 0.8698 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.000683/0.4534, allocations: 0.4899 MB / 1.379 GB, free: 2.199 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.4535, allocations: 8.031 kB / 1.379 GB, free: 2.191 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.47e-05/0.4536, allocations: 19.77 kB / 1.379 GB, free: 2.172 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003755/0.454, allocations: 256.3 kB / 1.379 GB, free: 1.879 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.454, allocations: 7.984 kB / 1.379 GB, free: 1.871 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.454, allocations: 4 kB / 1.379 GB, free: 1.867 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.4542, allocations: 96.17 kB / 1.379 GB, free: 1.758 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.4542, allocations: 0 / 1.379 GB, free: 1.758 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.4543, allocations: 7.984 kB / 1.379 GB, free: 1.75 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.4543, allocations: 4 kB / 1.379 GB, free: 1.746 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001244/0.4544, allocations: 35.97 kB / 1.379 GB, free: 1.711 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005329/0.455, allocations: 380.5 kB / 1.38 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.4552, allocations: 90.69 kB / 1.38 GB, free: 1.191 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.4552, allocations: 4 kB / 1.38 GB, free: 1.188 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001737/0.4554, allocations: 79.44 kB / 1.38 GB, free: 1.098 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=8): time 1.653e-06/0.4554, allocations: 0 / 1.38 GB, free: 1.098 MB / 0.8698 GB Notification: Performance of matching and sorting (n=8): time 0.0004029/0.4558, allocations: 234.5 kB / 1.38 GB, free: 0.8438 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.4559, allocations: 102.8 kB / 1.38 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.4561, allocations: 246.7 kB / 1.38 GB, free: 484 kB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.4562, allocations: 25.7 kB / 1.38 GB, free: 452 kB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.282e-05/0.4562, allocations: 120 kB / 1.381 GB, free: 328 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.54e-05/0.4563, allocations: 19.75 kB / 1.381 GB, free: 308 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.29e-06/0.4563, allocations: 0 / 1.381 GB, free: 308 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4564, allocations: 334.8 kB / 1.381 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.219e-05/0.4565, allocations: 27.98 kB / 1.381 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/0.4566, allocations: 72.27 kB / 1.381 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.123e-05/0.4567, allocations: 35.92 kB / 1.381 GB, free: 15.82 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.4567, allocations: 0 / 1.381 GB, free: 15.82 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002243/0.4569, allocations: 113.5 kB / 1.381 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.457, allocations: 12.03 kB / 1.381 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.457, allocations: 0 / 1.381 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.457, allocations: 3.938 kB / 1.381 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.617e-05/0.4571, allocations: 19.94 kB / 1.381 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.4571, allocations: 0 / 1.381 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.367e-05/0.4572, allocations: 15.84 kB / 1.381 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.719e-06/0.4572, allocations: 4 kB / 1.381 GB, free: 15.64 MB / 0.8855 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.4573, allocations: 136.6 kB / 1.381 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.4574, allocations: 19.81 kB / 1.381 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002702/0.4576, allocations: 131.4 kB / 1.381 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/0.4577, allocations: 11.98 kB / 1.381 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4577, allocations: 3.953 kB / 1.381 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.4577, allocations: 0 / 1.381 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.4579, allocations: 233.8 kB / 1.382 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4579, allocations: 0 / 1.382 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.442e-05/0.458, allocations: 7.938 kB / 1.382 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.458, allocations: 4 kB / 1.382 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.458, allocations: 3.984 kB / 1.382 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.458, allocations: 4 kB / 1.382 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.458, allocations: 80 / 1.382 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002415/0.4582, allocations: 160.8 kB / 1.382 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.4584, allocations: 96.92 kB / 1.382 GB, free: 14.74 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.007e-05/0.4584, allocations: 3.984 kB / 1.382 GB, free: 14.74 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.945e-05/0.4585, allocations: 4 kB / 1.382 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.087e-05/0.4585, allocations: 11.98 kB / 1.382 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.4586, allocations: 8 kB / 1.382 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001872/0.4587, allocations: 196.4 kB / 1.382 GB, free: 14.52 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4588, allocations: 0 / 1.382 GB, free: 14.52 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002963/0.4591, allocations: 59.83 kB / 1.382 GB, free: 14.46 MB / 0.8855 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) * Number of clocked states: 0 () * 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.001035/0.4601, allocations: 439.9 kB / 1.383 GB, free: 14.19 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000266/0.4604, allocations: 83.94 kB / 1.383 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4604, allocations: 8 kB / 1.383 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.523e-05/0.4605, allocations: 39.92 kB / 1.383 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.4608, allocations: 34.2 kB / 1.383 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005746/0.4614, allocations: 326.1 kB / 1.383 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.4616, allocations: 0.7281 MB / 1.384 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.844e-05/0.4617, allocations: 25.39 kB / 1.384 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.081e-05/0.4618, allocations: 23.42 kB / 1.384 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of SimCode: time 2.2e-07/0.4618, allocations: 0 / 1.384 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of Templates: time 0.005622/0.4674, allocations: 2.472 MB / 1.386 GB, free: 10.42 MB / 0.8855 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