Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.406/2.406, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.001216/0.001217, allocations: 186.8 kB / 0.4902 GB, free: 2.215 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.709/1.709, allocations: 223.2 MB / 0.7992 GB, free: 15.5 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.001036/0.001036, allocations: 92.33 kB / 0.9396 GB, free: 2.727 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005519/0.0005521, allocations: 11 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3364, allocations: 143 MB / 1.229 GB, free: 85.41 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2153/0.5517, allocations: 154.5 MB / 1.38 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.552, allocations: 79.95 kB / 1.38 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.0161/0.5681, allocations: 5.561 MB / 1.386 GB, free: 5.082 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.755e-06/0.5682, allocations: 0 / 1.386 GB, free: 5.082 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.845e-05/0.5682, allocations: 4 kB / 1.386 GB, free: 5.078 MB / 0.8855 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.0008189/0.5691, allocations: 0.4929 MB / 1.386 GB, free: 4.531 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.5691, allocations: 8.031 kB / 1.386 GB, free: 4.523 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.844e-05/0.5692, allocations: 19.77 kB / 1.386 GB, free: 4.504 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004293/0.5696, allocations: 259.7 kB / 1.386 GB, free: 4.207 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.5697, allocations: 3.984 kB / 1.386 GB, free: 4.203 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.5697, allocations: 4 kB / 1.386 GB, free: 4.199 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002499/0.5699, allocations: 96.17 kB / 1.386 GB, free: 4.09 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.57, allocations: 3.938 kB / 1.386 GB, free: 4.086 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.57, allocations: 0 / 1.386 GB, free: 4.086 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.57, allocations: 4 kB / 1.386 GB, free: 4.082 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.5701, allocations: 39.97 kB / 1.386 GB, free: 4.043 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007293/0.5709, allocations: 372.6 kB / 1.387 GB, free: 3.629 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.5711, allocations: 86.66 kB / 1.387 GB, free: 3.535 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.5712, allocations: 0 / 1.387 GB, free: 3.535 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002234/0.5714, allocations: 91.53 kB / 1.387 GB, free: 3.434 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/0.5714, allocations: 4 kB / 1.387 GB, free: 3.43 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.0004988/0.5719, allocations: 222.5 kB / 1.387 GB, free: 3.188 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.572, allocations: 106.8 kB / 1.387 GB, free: 3.059 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.5723, allocations: 246.6 kB / 1.388 GB, free: 2.809 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.5724, allocations: 29.7 kB / 1.388 GB, free: 2.773 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.155e-05/0.5725, allocations: 120 kB / 1.388 GB, free: 2.652 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.914e-05/0.5725, allocations: 19.75 kB / 1.388 GB, free: 2.633 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.09e-05/0.5725, allocations: 7.984 kB / 1.388 GB, free: 2.625 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.5727, allocations: 326.8 kB / 1.388 GB, free: 2.297 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.444e-05/0.5728, allocations: 31.92 kB / 1.388 GB, free: 2.266 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.5729, allocations: 76.27 kB / 1.388 GB, free: 2.176 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.94e-05/0.573, allocations: 31.98 kB / 1.388 GB, free: 2.145 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.573, allocations: 0 / 1.388 GB, free: 2.145 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000232/0.5732, allocations: 117.4 kB / 1.388 GB, free: 2.023 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.5733, allocations: 4 kB / 1.388 GB, free: 2.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.5733, allocations: 0 / 1.388 GB, free: 2.02 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.5733, allocations: 4 kB / 1.388 GB, free: 2.016 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.5734, allocations: 15.94 kB / 1.388 GB, free: 2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.5734, allocations: 4.391 kB / 1.388 GB, free: 1.996 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.661e-05/0.5735, allocations: 4 kB / 1.388 GB, free: 1.992 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-06/0.5735, allocations: 4.031 kB / 1.388 GB, free: 1.988 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.0001444/0.5737, allocations: 150.6 kB / 1.388 GB, free: 1.832 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.003e-05/0.5737, allocations: 15.81 kB / 1.388 GB, free: 1.816 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002954/0.574, allocations: 127.2 kB / 1.389 GB, free: 1.684 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.574, allocations: 7.922 kB / 1.389 GB, free: 1.676 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.148e-06/0.5741, allocations: 7.891 kB / 1.389 GB, free: 1.668 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.5741, allocations: 4 kB / 1.389 GB, free: 1.664 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002388/0.5743, allocations: 237.5 kB / 1.389 GB, free: 1.383 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5743, allocations: 0 / 1.389 GB, free: 1.383 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.523e-05/0.5744, allocations: 15.94 kB / 1.389 GB, free: 1.367 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.5744, allocations: 0 / 1.389 GB, free: 1.367 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.5744, allocations: 7.984 kB / 1.389 GB, free: 1.359 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.5744, allocations: 0 / 1.389 GB, free: 1.359 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.5744, allocations: 0 / 1.389 GB, free: 1.359 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000257/0.5747, allocations: 148.8 kB / 1.389 GB, free: 1.195 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 9.023e-05/0.5748, allocations: 100.9 kB / 1.389 GB, free: 1.078 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.5748, allocations: 7.984 kB / 1.389 GB, free: 1.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.186e-05/0.5749, allocations: 8 kB / 1.389 GB, free: 1.062 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.699e-05/0.5749, allocations: 7.984 kB / 1.389 GB, free: 1.055 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.575, allocations: 4 kB / 1.389 GB, free: 1.051 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001944/0.5752, allocations: 192.6 kB / 1.389 GB, free: 0.8633 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5752, allocations: 0 / 1.389 GB, free: 0.8633 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002879/0.5755, allocations: 51.89 kB / 1.389 GB, free: 0.8125 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.001127/0.5766, allocations: 450.9 kB / 1.39 GB, free: 0.5273 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002614/0.5769, allocations: 83.88 kB / 1.39 GB, free: 456 kB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5769, allocations: 0 / 1.39 GB, free: 456 kB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.577, allocations: 43.97 kB / 1.39 GB, free: 412 kB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.5773, allocations: 31.97 kB / 1.39 GB, free: 380 kB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006039/0.5779, allocations: 329.9 kB / 1.39 GB, free: 20 kB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.5783, allocations: 0.7282 MB / 1.391 GB, free: 15.27 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 9.026e-05/0.5784, allocations: 29.38 kB / 1.391 GB, free: 15.23 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.295e-05/0.5784, allocations: 19.42 kB / 1.391 GB, free: 15.21 MB / 0.9011 GB Notification: Performance of SimCode: time 3.71e-07/0.5784, allocations: 0 / 1.391 GB, free: 15.21 MB / 0.9011 GB Notification: Performance of Templates: time 0.005855/0.5843, allocations: 2.481 MB / 1.393 GB, free: 12.76 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches