Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.BooleanReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.|booRep.y.4.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator") translateModel(Buildings.Utilities.Math.Examples.BooleanReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.|booRep.y.4.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator") [: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 7.0.3-maint.7.0.x/package.mo): time 1.197/1.197, allocations: 249.4 MB / 256.7 MB, free: 6.926 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00109/0.00109, allocations: 173.3 kB / 316 MB, free: 3.527 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.087/1.087, allocations: 205.1 MB / 0.5667 GB, free: 15.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009/0.0008997, allocations: 89.59 kB / 0.671 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.833e-06/6.863e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1424, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4132/0.5556, allocations: 135.9 MB / 1.017 GB, free: 2.777 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/0.5559, allocations: 79.3 kB / 1.017 GB, free: 2.738 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01296/0.5688, allocations: 5.009 MB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.417e-05/0.5689, allocations: 4 kB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004387/0.5693, allocations: 465.3 kB / 1.023 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.5694, allocations: 8.031 kB / 1.023 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.039e-05/0.5694, allocations: 19.81 kB / 1.023 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003363/0.5698, allocations: 247.8 kB / 1.023 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.5698, allocations: 0 / 1.023 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.5698, allocations: 7.984 kB / 1.023 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.448e-05/0.5699, allocations: 42.41 kB / 1.023 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.57, allocations: 84.62 kB / 1.023 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.57, allocations: 0 / 1.023 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.5701, allocations: 0 / 1.023 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.5701, allocations: 8 kB / 1.023 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004214/0.5705, allocations: 333 kB / 1.023 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.5706, allocations: 67.81 kB / 1.024 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.842e-05/0.5707, allocations: 30.92 kB / 1.024 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.5707, allocations: 4 kB / 1.024 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.591e-05/0.5708, allocations: 78.86 kB / 1.024 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.5708, allocations: 0 / 1.024 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10): time 0.0002409/0.5711, allocations: 99.8 kB / 1.024 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.5711, allocations: 81.11 kB / 1.024 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/0.5713, allocations: 233.8 kB / 1.024 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.5714, allocations: 29.64 kB / 1.024 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.254e-05/0.5714, allocations: 103.5 kB / 1.024 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.567e-05/0.5715, allocations: 22.7 kB / 1.024 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.5715, allocations: 0 / 1.024 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.5716, allocations: 332.6 kB / 1.024 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.3e-05/0.5716, allocations: 30.05 kB / 1.025 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.671e-05/0.5717, allocations: 56.17 kB / 1.025 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001056/0.5718, allocations: 35.77 kB / 1.025 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.5718, allocations: 0 / 1.025 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001985/0.572, allocations: 124.2 kB / 1.025 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.572, allocations: 8 kB / 1.025 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.5721, allocations: 0 / 1.025 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.5721, allocations: 0 / 1.025 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.663e-05/0.5721, allocations: 11.98 kB / 1.025 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.5722, allocations: 4 kB / 1.025 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.408e-05/0.5722, allocations: 7.938 kB / 1.025 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.565e-06/0.5722, allocations: 4.031 kB / 1.025 GB, free: 12.14 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEvent,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * 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 9.146e-05/0.5723, allocations: 113.4 kB / 1.025 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.623e-05/0.5724, allocations: 15.81 kB / 1.025 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002121/0.5726, allocations: 124.2 kB / 1.025 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.595e-06/0.5726, allocations: 0 / 1.025 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.5726, allocations: 0 / 1.025 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.5726, allocations: 0 / 1.025 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001704/0.5728, allocations: 209.4 kB / 1.025 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.5728, allocations: 4 kB / 1.025 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.837e-05/0.5729, allocations: 4 kB / 1.025 GB, free: 11.67 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.5729, allocations: 0 / 1.025 GB, free: 11.67 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.5729, allocations: 0 / 1.025 GB, free: 11.67 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.5729, allocations: 0 / 1.025 GB, free: 11.67 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.5729, allocations: 4 kB / 1.025 GB, free: 11.67 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001805/0.5731, allocations: 142.6 kB / 1.025 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.19e-05/0.5732, allocations: 104.3 kB / 1.025 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.297e-05/0.5732, allocations: 7.562 kB / 1.025 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.837e-05/0.5733, allocations: 8 kB / 1.025 GB, free: 11.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.113e-05/0.5733, allocations: 3.984 kB / 1.025 GB, free: 11.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-06/0.5733, allocations: 4 kB / 1.025 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001505/0.5735, allocations: 190.2 kB / 1.026 GB, free: 11.24 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002247/0.5737, allocations: 43.44 kB / 1.026 GB, free: 11.2 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEvent,booTab.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.0005721/0.5743, allocations: 326.8 kB / 1.026 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001526/0.5744, allocations: 72.09 kB / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.5744, allocations: 0 / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.913e-05/0.5745, allocations: 40.88 kB / 1.026 GB, free: 10.88 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.5747, allocations: 39.11 kB / 1.026 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004011/0.5751, allocations: 221.7 kB / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003017/0.5755, allocations: 0.7503 MB / 1.027 GB, free: 9.867 MB / 0.6511 GB Notification: Performance of SimCode: time 2.21e-07/0.5755, allocations: 0 / 1.027 GB, free: 9.867 MB / 0.6511 GB Notification: Performance of Templates: time 0.004549/0.58, allocations: 2.171 MB / 1.029 GB, free: 7.719 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches