Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) [: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 8.0.1-maint.8.0.x/package.mo): time 1.376/1.376, allocations: 285.5 MB / 292.8 MB, free: 1.152 MB / 227.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 183.6 kB / 361.1 MB, free: 15.43 MB / 291.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.215/1.215, allocations: 205.2 MB / 0.6195 GB, free: 6.117 MB / 467.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008749/0.0008749, allocations: 98.44 kB / 0.7326 GB, free: 47 MB / 0.5186 GB Notification: Performance of FrontEnd - loaded program: time 0.2289/0.2298, allocations: 121.4 MB / 0.8512 GB, free: 12.97 MB / 0.5967 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5527/0.7825, allocations: 115.3 MB / 0.9637 GB, free: 85.84 MB / 0.6749 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1505/0.933, allocations: 141.2 MB / 1.102 GB, free: 8.516 MB / 0.7061 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001876/0.9333, allocations: 80.47 kB / 1.102 GB, free: 8.438 MB / 0.7061 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.01433/0.9476, allocations: 5.464 MB / 1.107 GB, free: 2.988 MB / 0.7061 GB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.9477, allocations: 8 kB / 1.107 GB, free: 2.98 MB / 0.7061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.312e-05/0.9477, allocations: 19.72 kB / 1.107 GB, free: 2.961 MB / 0.7061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003452/0.9481, allocations: 248.9 kB / 1.107 GB, free: 2.676 MB / 0.7061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.9481, allocations: 3.984 kB / 1.107 GB, free: 2.672 MB / 0.7061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.9481, allocations: 11.92 kB / 1.107 GB, free: 2.66 MB / 0.7061 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.148e-05/0.9482, allocations: 31.72 kB / 1.107 GB, free: 2.633 MB / 0.7061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.9484, allocations: 84.34 kB / 1.107 GB, free: 2.539 MB / 0.7061 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-06/0.9484, allocations: 0 / 1.107 GB, free: 2.539 MB / 0.7061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.9484, allocations: 0 / 1.107 GB, free: 2.539 MB / 0.7061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.707e-05/0.9484, allocations: 8.5 kB / 1.107 GB, free: 2.531 MB / 0.7061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004244/0.9489, allocations: 341 kB / 1.108 GB, free: 2.164 MB / 0.7061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.949, allocations: 68.34 kB / 1.108 GB, free: 2.09 MB / 0.7061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.876e-05/0.949, allocations: 36.81 kB / 1.108 GB, free: 2.051 MB / 0.7061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/0.949, allocations: 4 kB / 1.108 GB, free: 2.047 MB / 0.7061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.03e-05/0.9491, allocations: 75.44 kB / 1.108 GB, free: 1.961 MB / 0.7061 GB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.9491, allocations: 0 / 1.108 GB, free: 1.961 MB / 0.7061 GB Notification: Performance of matching and sorting (n=10): time 0.0002223/0.9494, allocations: 101.5 kB / 1.108 GB, free: 1.855 MB / 0.7061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.9494, allocations: 85.09 kB / 1.108 GB, free: 1.754 MB / 0.7061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.9496, allocations: 229.9 kB / 1.108 GB, free: 1.523 MB / 0.7061 GB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.9497, allocations: 25.7 kB / 1.108 GB, free: 1.492 MB / 0.7061 GB Notification: Performance of collectInitialEqns (initialization): time 3.858e-05/0.9497, allocations: 104 kB / 1.108 GB, free: 1.387 MB / 0.7061 GB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.9498, allocations: 19.72 kB / 1.108 GB, free: 1.367 MB / 0.7061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-06/0.9498, allocations: 0.8438 kB / 1.108 GB, free: 1.367 MB / 0.7061 GB Notification: Performance of setup shared object (initialization): time 8.986e-05/0.9499, allocations: 334.8 kB / 1.109 GB, free: 1.031 MB / 0.7061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.027e-05/0.9499, allocations: 27.94 kB / 1.109 GB, free: 1.004 MB / 0.7061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.529e-05/0.95, allocations: 55.42 kB / 1.109 GB, free: 0.9375 MB / 0.7061 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.488e-05/0.95, allocations: 37.72 kB / 1.109 GB, free: 0.9023 MB / 0.7061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.9501, allocations: 3.938 kB / 1.109 GB, free: 0.8984 MB / 0.7061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001763/0.9502, allocations: 109.4 kB / 1.109 GB, free: 0.7852 MB / 0.7061 GB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.9503, allocations: 4 kB / 1.109 GB, free: 0.7812 MB / 0.7061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.9503, allocations: 4 kB / 1.109 GB, free: 0.7773 MB / 0.7061 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.365e-06/0.9503, allocations: 0 / 1.109 GB, free: 0.7773 MB / 0.7061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.582e-05/0.9504, allocations: 15.98 kB / 1.109 GB, free: 0.7617 MB / 0.7061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.416e-06/0.9504, allocations: 0 / 1.109 GB, free: 0.7617 MB / 0.7061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.666e-05/0.9504, allocations: 15.84 kB / 1.109 GB, free: 0.7461 MB / 0.7061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.964e-06/0.9505, allocations: 4.031 kB / 1.109 GB, free: 0.7422 MB / 0.7061 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 6.824e-05/0.9505, allocations: 112.7 kB / 1.109 GB, free: 0.6289 MB / 0.7061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.9506, allocations: 19.8 kB / 1.109 GB, free: 0.6094 MB / 0.7061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000197/0.9508, allocations: 118.4 kB / 1.109 GB, free: 0.4922 MB / 0.7061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.9508, allocations: 4 kB / 1.109 GB, free: 500 kB / 0.7061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.9508, allocations: 0 / 1.109 GB, free: 500 kB / 0.7061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.9508, allocations: 0 / 1.109 GB, free: 500 kB / 0.7061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001553/0.951, allocations: 206.1 kB / 1.109 GB, free: 256 kB / 0.7061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.951, allocations: 6.5 kB / 1.109 GB, free: 252 kB / 0.7061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.845e-05/0.951, allocations: 8 kB / 1.11 GB, free: 244 kB / 0.7061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.951, allocations: 0 / 1.11 GB, free: 244 kB / 0.7061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.951, allocations: 0 / 1.11 GB, free: 244 kB / 0.7061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.951, allocations: 7.844 kB / 1.11 GB, free: 236 kB / 0.7061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.951, allocations: 3.938 kB / 1.11 GB, free: 232 kB / 0.7061 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001775/0.9512, allocations: 140.2 kB / 1.11 GB, free: 76 kB / 0.7061 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002939/0.9515, allocations: 0.5168 MB / 1.11 GB, free: 15.54 MB / 0.7217 GB Notification: Performance of postOpt removeConstants (simulation): time 5.83e-05/0.9516, allocations: 96.92 kB / 1.11 GB, free: 15.42 MB / 0.7217 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.9516, allocations: 0 / 1.11 GB, free: 15.42 MB / 0.7217 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.246e-05/0.9517, allocations: 7.984 kB / 1.11 GB, free: 15.41 MB / 0.7217 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.161e-05/0.9517, allocations: 4 kB / 1.11 GB, free: 15.41 MB / 0.7217 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.9518, allocations: 3.984 kB / 1.11 GB, free: 15.41 MB / 0.7217 GB Notification: Performance of sort global known variables: time 0.000152/0.9519, allocations: 192.2 kB / 1.11 GB, free: 15.22 MB / 0.7217 GB Notification: Performance of remove unused functions: time 0.0007982/0.9527, allocations: 55.77 kB / 1.11 GB, free: 15.16 MB / 0.7217 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.0005746/0.9533, allocations: 322 kB / 1.111 GB, free: 14.96 MB / 0.7217 GB Notification: Performance of simCode: created initialization part: time 0.0001524/0.9535, allocations: 75.92 kB / 1.111 GB, free: 14.88 MB / 0.7217 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.9535, allocations: 0 / 1.111 GB, free: 14.88 MB / 0.7217 GB Notification: Performance of simCode: created simulation system equations: time 5.825e-05/0.9535, allocations: 36 kB / 1.111 GB, free: 14.85 MB / 0.7217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.9538, allocations: 33.75 kB / 1.111 GB, free: 14.82 MB / 0.7217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004096/0.9542, allocations: 229.4 kB / 1.111 GB, free: 14.57 MB / 0.7217 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002653/0.9545, allocations: 0.7469 MB / 1.112 GB, free: 13.8 MB / 0.7217 GB Notification: Performance of SimCode: time 2.7e-07/0.9545, allocations: 0 / 1.112 GB, free: 13.8 MB / 0.7217 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)