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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2/2, allocations: 390.4 MB / 397.7 MB, free: 1.895 MB / 307 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 175.1 kB / 490.8 MB, free: 7.5 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 221.3 MB / 0.7863 GB, free: 272 kB / 0.5498 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000913/0.0009129, allocations: 96.61 kB / 0.9264 GB, free: 0.6602 MB / 0.6904 GB Notification: Performance of FrontEnd - loaded program: time 8.196e-06/8.206e-06, allocations: 4 kB / 1.072 GB, free: 137.5 MB / 0.7217 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2779, allocations: 143 MB / 1.212 GB, free: 10.59 MB / 0.7373 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7597/1.038, allocations: 153.7 MB / 1.362 GB, free: 8.391 MB / 0.8311 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/1.038, allocations: 75.95 kB / 1.362 GB, free: 8.316 MB / 0.8311 GB Notification: Performance of FrontEnd: time 0.01547/1.053, allocations: 5.159 MB / 1.367 GB, free: 3.18 MB / 0.8311 GB Notification: Performance of Transformations before backend: time 2.514e-05/1.053, allocations: 4 kB / 1.367 GB, free: 3.176 MB / 0.8311 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.0007445/1.054, allocations: 459.7 kB / 1.367 GB, free: 2.676 MB / 0.8311 GB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/1.054, allocations: 12.03 kB / 1.367 GB, free: 2.664 MB / 0.8311 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.997e-05/1.054, allocations: 19.73 kB / 1.367 GB, free: 2.645 MB / 0.8311 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004664/1.055, allocations: 260.3 kB / 1.367 GB, free: 2.348 MB / 0.8311 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/1.055, allocations: 7.906 kB / 1.367 GB, free: 2.34 MB / 0.8311 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/1.055, allocations: 4 kB / 1.367 GB, free: 2.336 MB / 0.8311 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001259/1.055, allocations: 27.98 kB / 1.368 GB, free: 2.309 MB / 0.8311 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001633/1.055, allocations: 100.2 kB / 1.368 GB, free: 2.195 MB / 0.8311 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/1.055, allocations: 0 / 1.368 GB, free: 2.195 MB / 0.8311 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/1.055, allocations: 0 / 1.368 GB, free: 2.195 MB / 0.8311 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.087e-05/1.055, allocations: 4 kB / 1.368 GB, free: 2.191 MB / 0.8311 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005878/1.056, allocations: 345.2 kB / 1.368 GB, free: 1.816 MB / 0.8311 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001567/1.056, allocations: 78.67 kB / 1.368 GB, free: 1.73 MB / 0.8311 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.361e-05/1.056, allocations: 32.91 kB / 1.368 GB, free: 1.695 MB / 0.8311 GB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/1.056, allocations: 4 kB / 1.368 GB, free: 1.691 MB / 0.8311 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001323/1.056, allocations: 79.23 kB / 1.368 GB, free: 1.602 MB / 0.8311 GB Notification: Performance of pre-optimization done (n=8): time 1.793e-06/1.056, allocations: 0 / 1.368 GB, free: 1.602 MB / 0.8311 GB Notification: Performance of matching and sorting (n=8): time 0.0003344/1.057, allocations: 101.5 kB / 1.368 GB, free: 1.496 MB / 0.8311 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.838e-05/1.057, allocations: 110.8 kB / 1.368 GB, free: 1.363 MB / 0.8311 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/1.057, allocations: 230.6 kB / 1.369 GB, free: 1.133 MB / 0.8311 GB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/1.057, allocations: 29.7 kB / 1.369 GB, free: 1.098 MB / 0.8311 GB Notification: Performance of collectInitialEqns (initialization): time 6.426e-05/1.057, allocations: 96.12 kB / 1.369 GB, free: 1 MB / 0.8311 GB Notification: Performance of collectInitialBindings (initialization): time 3.9e-05/1.057, allocations: 23.7 kB / 1.369 GB, free: 0.9766 MB / 0.8311 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.69e-06/1.057, allocations: 0 / 1.369 GB, free: 0.9766 MB / 0.8311 GB Notification: Performance of setup shared object (initialization): time 0.0001654/1.057, allocations: 326.8 kB / 1.369 GB, free: 0.6484 MB / 0.8311 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.859e-05/1.057, allocations: 23.98 kB / 1.369 GB, free: 0.625 MB / 0.8311 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.124e-05/1.058, allocations: 72.28 kB / 1.369 GB, free: 0.5391 MB / 0.8311 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.451e-05/1.058, allocations: 31.92 kB / 1.369 GB, free: 0.5078 MB / 0.8311 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/1.058, allocations: 0 / 1.369 GB, free: 0.5078 MB / 0.8311 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002048/1.058, allocations: 109.5 kB / 1.369 GB, free: 404 kB / 0.8311 GB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/1.058, allocations: 4 kB / 1.369 GB, free: 400 kB / 0.8311 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/1.058, allocations: 0 / 1.369 GB, free: 400 kB / 0.8311 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.537e-05/1.058, allocations: 4.031 kB / 1.369 GB, free: 396 kB / 0.8311 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/1.058, allocations: 15.98 kB / 1.369 GB, free: 380 kB / 0.8311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/1.058, allocations: 8.031 kB / 1.369 GB, free: 372 kB / 0.8311 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.416e-05/1.058, allocations: 11.94 kB / 1.369 GB, free: 360 kB / 0.8311 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/1.058, allocations: 11.92 kB / 1.369 GB, free: 348 kB / 0.8311 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.0001067/1.058, allocations: 110.4 kB / 1.369 GB, free: 232 kB / 0.8311 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.218e-05/1.058, allocations: 23.66 kB / 1.369 GB, free: 208 kB / 0.8311 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002563/1.059, allocations: 115 kB / 1.37 GB, free: 88 kB / 0.8311 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/1.059, allocations: 7.984 kB / 1.37 GB, free: 80 kB / 0.8311 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/1.059, allocations: 0 / 1.37 GB, free: 80 kB / 0.8311 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/1.059, allocations: 0 / 1.37 GB, free: 80 kB / 0.8311 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002848/1.059, allocations: 198.2 kB / 1.37 GB, free: 15.85 MB / 0.8467 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/1.059, allocations: 7.891 kB / 1.37 GB, free: 15.84 MB / 0.8467 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.937e-05/1.059, allocations: 8 kB / 1.37 GB, free: 15.83 MB / 0.8467 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/1.059, allocations: 0 / 1.37 GB, free: 15.83 MB / 0.8467 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/1.059, allocations: 0 / 1.37 GB, free: 15.83 MB / 0.8467 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/1.059, allocations: 4 kB / 1.37 GB, free: 15.83 MB / 0.8467 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/1.059, allocations: 0 / 1.37 GB, free: 15.83 MB / 0.8467 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002082/1.059, allocations: 136.8 kB / 1.37 GB, free: 15.68 MB / 0.8467 GB Notification: Performance of postOpt removeConstants (simulation): time 8.945e-05/1.059, allocations: 104.9 kB / 1.37 GB, free: 15.55 MB / 0.8467 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/1.059, allocations: 3.906 kB / 1.37 GB, free: 15.55 MB / 0.8467 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.51e-05/1.06, allocations: 4 kB / 1.37 GB, free: 15.55 MB / 0.8467 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.064e-05/1.06, allocations: 7.984 kB / 1.37 GB, free: 15.54 MB / 0.8467 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/1.06, allocations: 0 / 1.37 GB, free: 15.54 MB / 0.8467 GB Notification: Performance of sort global known variables: time 0.0001783/1.06, allocations: 191 kB / 1.37 GB, free: 15.35 MB / 0.8467 GB Notification: Performance of remove unused functions: time 0.0003128/1.06, allocations: 55.92 kB / 1.37 GB, free: 15.3 MB / 0.8467 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.0008339/1.061, allocations: 336.1 kB / 1.371 GB, free: 15.05 MB / 0.8467 GB Notification: Performance of simCode: created initialization part: time 0.0002337/1.061, allocations: 79.95 kB / 1.371 GB, free: 14.97 MB / 0.8467 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/1.061, allocations: 0 / 1.371 GB, free: 14.97 MB / 0.8467 GB Notification: Performance of simCode: created simulation system equations: time 8.165e-05/1.061, allocations: 35.94 kB / 1.371 GB, free: 14.94 MB / 0.8467 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/1.062, allocations: 32.03 kB / 1.371 GB, free: 14.91 MB / 0.8467 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005017/1.062, allocations: 219.7 kB / 1.371 GB, free: 14.66 MB / 0.8467 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000384/1.062, allocations: 0.7507 MB / 1.372 GB, free: 13.89 MB / 0.8467 GB Notification: Performance of SimCode: time 2.3e-07/1.062, allocations: 0 / 1.372 GB, free: 13.89 MB / 0.8467 GB Notification: Performance of Templates: time 0.005664/1.068, allocations: 2.358 MB / 1.374 GB, free: 11.55 MB / 0.8467 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