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") [: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 9.1.1-maint.9.1.x/package.mo): time 1.916/1.916, allocations: 387.2 MB / 394.5 MB, free: 13.14 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 182.1 kB / 487 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.233/1.233, allocations: 221.3 MB / 0.7819 GB, free: 6.688 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008577/0.0008577, allocations: 108.1 kB / 0.9213 GB, free: 43.58 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.474e-06, allocations: 0 / 1.066 GB, free: 7.465 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5986/0.5986, allocations: 142.3 MB / 1.205 GB, free: 72.61 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1663/0.7649, allocations: 152.9 MB / 1.355 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001748/0.7651, allocations: 75.95 kB / 1.355 GB, free: 10.18 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.01463/0.7798, allocations: 5.157 MB / 1.36 GB, free: 5.082 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.342e-05/0.7798, allocations: 0 / 1.36 GB, free: 5.082 MB / 0.8542 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.0004892/0.7803, allocations: 458 kB / 1.36 GB, free: 4.586 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.7804, allocations: 12.02 kB / 1.36 GB, free: 4.574 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.059e-05/0.7804, allocations: 16.44 kB / 1.36 GB, free: 4.559 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004191/0.7809, allocations: 260.5 kB / 1.36 GB, free: 4.262 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.7809, allocations: 4 kB / 1.36 GB, free: 4.258 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.7809, allocations: 0.875 kB / 1.36 GB, free: 4.258 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.923e-05/0.781, allocations: 39.92 kB / 1.36 GB, free: 4.219 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.7812, allocations: 93.73 kB / 1.36 GB, free: 4.113 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.7812, allocations: 0.5625 kB / 1.36 GB, free: 4.113 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.7812, allocations: 0.9375 kB / 1.36 GB, free: 4.113 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.7812, allocations: 3.984 kB / 1.36 GB, free: 4.109 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004763/0.7817, allocations: 342.5 kB / 1.361 GB, free: 3.738 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001449/0.7819, allocations: 86.7 kB / 1.361 GB, free: 3.645 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.077e-05/0.7819, allocations: 29.47 kB / 1.361 GB, free: 3.613 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.782, allocations: 4 kB / 1.361 GB, free: 3.609 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001029/0.7821, allocations: 76.98 kB / 1.361 GB, free: 3.523 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 1.413e-06/0.7821, allocations: 0 / 1.361 GB, free: 3.523 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.0002471/0.7823, allocations: 109.4 kB / 1.361 GB, free: 3.41 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/0.7824, allocations: 102.8 kB / 1.361 GB, free: 3.285 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002425/0.7826, allocations: 234.4 kB / 1.361 GB, free: 3.051 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.7827, allocations: 29.7 kB / 1.361 GB, free: 3.016 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.15e-05/0.7827, allocations: 96.12 kB / 1.362 GB, free: 2.918 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.764e-05/0.7828, allocations: 19.7 kB / 1.362 GB, free: 2.898 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/0.7828, allocations: 0 / 1.362 GB, free: 2.898 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.7829, allocations: 326.8 kB / 1.362 GB, free: 2.57 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.586e-05/0.7829, allocations: 27.98 kB / 1.362 GB, free: 2.543 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-05/0.783, allocations: 72.28 kB / 1.362 GB, free: 2.457 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.829e-05/0.7831, allocations: 31.92 kB / 1.362 GB, free: 2.426 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.7831, allocations: 5.219 kB / 1.362 GB, free: 2.422 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001906/0.7833, allocations: 110.8 kB / 1.362 GB, free: 2.309 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.7833, allocations: 4 kB / 1.362 GB, free: 2.305 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.7834, allocations: 4 kB / 1.362 GB, free: 2.301 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.7834, allocations: 8.016 kB / 1.362 GB, free: 2.293 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.7835, allocations: 16.84 kB / 1.362 GB, free: 2.277 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.247e-06/0.7835, allocations: 0 / 1.362 GB, free: 2.277 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.221e-05/0.7836, allocations: 7.938 kB / 1.362 GB, free: 2.27 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.7836, allocations: 3.984 kB / 1.362 GB, free: 2.266 MB / 0.8542 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.266e-05/0.7837, allocations: 110.4 kB / 1.362 GB, free: 2.152 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.944e-05/0.7837, allocations: 19.72 kB / 1.362 GB, free: 2.133 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002333/0.7839, allocations: 123.7 kB / 1.362 GB, free: 2.008 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.784, allocations: 3.984 kB / 1.362 GB, free: 2.004 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.784, allocations: 0 / 1.362 GB, free: 2.004 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.784, allocations: 4 kB / 1.362 GB, free: 2 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001759/0.7842, allocations: 206.2 kB / 1.363 GB, free: 1.766 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.7842, allocations: 0 / 1.363 GB, free: 1.766 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.721e-05/0.7842, allocations: 4 kB / 1.363 GB, free: 1.762 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.7842, allocations: 4 kB / 1.363 GB, free: 1.758 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.7843, allocations: 4 kB / 1.363 GB, free: 1.754 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.7843, allocations: 0.875 kB / 1.363 GB, free: 1.754 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.7843, allocations: 4 kB / 1.363 GB, free: 1.75 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001957/0.7845, allocations: 134.7 kB / 1.363 GB, free: 1.602 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 7.615e-05/0.7846, allocations: 104.8 kB / 1.363 GB, free: 1.48 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.7846, allocations: 4 kB / 1.363 GB, free: 1.477 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.777e-05/0.7847, allocations: 0 / 1.363 GB, free: 1.477 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.7847, allocations: 15.92 kB / 1.363 GB, free: 1.461 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.7847, allocations: 4.938 kB / 1.363 GB, free: 1.457 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0001746/0.7849, allocations: 188.6 kB / 1.363 GB, free: 1.273 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002643/0.7852, allocations: 47.92 kB / 1.363 GB, free: 1.227 MB / 0.8542 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.0006838/0.7859, allocations: 328.4 kB / 1.363 GB, free: 1.039 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002012/0.7861, allocations: 83.89 kB / 1.363 GB, free: 0.957 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.7861, allocations: 0 / 1.363 GB, free: 0.957 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 8.368e-05/0.7862, allocations: 40.67 kB / 1.364 GB, free: 0.918 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.7865, allocations: 28.05 kB / 1.364 GB, free: 0.8906 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004494/0.7869, allocations: 226.3 kB / 1.364 GB, free: 0.6445 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000407/0.7873, allocations: 0.7469 MB / 1.364 GB, free: 15.87 MB / 0.8698 GB Notification: Performance of SimCode: time 2.3e-07/0.7874, allocations: 0.5625 kB / 1.364 GB, free: 15.87 MB / 0.8698 GB Notification: Performance of Templates: time 0.005386/0.7927, allocations: 2.358 MB / 1.367 GB, free: 13.58 MB / 0.8698 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