Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") [: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.1.4-maint.8.1.x/package.mo): time 1.339/1.339, allocations: 289.8 MB / 297.1 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009246/0.0009243, allocations: 177.3 kB / 366.3 MB, free: 2.027 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.036/1.036, allocations: 205.1 MB / 0.6256 GB, free: 5.828 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007717/0.0007717, allocations: 86.09 kB / 0.7395 GB, free: 39.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.805e-06/7.845e-06, allocations: 4 kB / 0.859 GB, free: 13.37 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4194/0.4194, allocations: 116.3 MB / 0.9726 GB, free: 67.99 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1365/0.556, allocations: 138.8 MB / 1.108 GB, free: 9.727 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001858/0.5562, allocations: 71.94 kB / 1.108 GB, free: 9.656 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.006805/0.563, allocations: 2.187 MB / 1.11 GB, free: 7.484 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.563, allocations: 0 / 1.11 GB, free: 7.484 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005139/0.5636, allocations: 431.9 kB / 1.111 GB, free: 7.012 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.5636, allocations: 12.03 kB / 1.111 GB, free: 7 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.004e-05/0.5637, allocations: 13.41 kB / 1.111 GB, free: 6.988 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.5638, allocations: 178.8 kB / 1.111 GB, free: 6.773 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.5638, allocations: 7.984 kB / 1.111 GB, free: 6.766 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.818e-05/0.5638, allocations: 8 kB / 1.111 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001151/0.564, allocations: 43.98 kB / 1.111 GB, free: 6.715 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.5641, allocations: 68.05 kB / 1.111 GB, free: 6.645 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.5641, allocations: 0 / 1.111 GB, free: 6.645 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.5641, allocations: 0 / 1.111 GB, free: 6.645 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.5641, allocations: 4 kB / 1.111 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004713/0.5646, allocations: 349.2 kB / 1.111 GB, free: 6.262 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001082/0.5647, allocations: 58.69 kB / 1.111 GB, free: 6.195 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.511e-05/0.5648, allocations: 36.86 kB / 1.111 GB, free: 6.156 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.5648, allocations: 4 kB / 1.111 GB, free: 6.152 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001041/0.5649, allocations: 87.36 kB / 1.112 GB, free: 6.055 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.243e-06/0.5649, allocations: 0 / 1.112 GB, free: 6.055 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0002224/0.5651, allocations: 95.45 kB / 1.112 GB, free: 5.957 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.5652, allocations: 55.41 kB / 1.112 GB, free: 5.891 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.774e-05/0.5653, allocations: 112.6 kB / 1.112 GB, free: 5.777 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/0.5653, allocations: 33.7 kB / 1.112 GB, free: 5.738 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.222e-05/0.5654, allocations: 104 kB / 1.112 GB, free: 5.633 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.79e-05/0.5654, allocations: 27.64 kB / 1.112 GB, free: 5.605 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.466e-05/0.5654, allocations: 4 kB / 1.112 GB, free: 5.602 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.616e-05/0.5655, allocations: 318.8 kB / 1.112 GB, free: 5.281 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.453e-05/0.5656, allocations: 51.98 kB / 1.112 GB, free: 5.23 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.5657, allocations: 84.22 kB / 1.112 GB, free: 5.133 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002022/0.5659, allocations: 59.95 kB / 1.112 GB, free: 5.074 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.5659, allocations: 3.938 kB / 1.112 GB, free: 5.07 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000372/0.5663, allocations: 169.5 kB / 1.113 GB, free: 4.898 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.868e-06/0.5663, allocations: 8.125 kB / 1.113 GB, free: 4.891 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.5663, allocations: 4 kB / 1.113 GB, free: 4.887 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.5664, allocations: 0 / 1.113 GB, free: 4.887 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.5665, allocations: 27.92 kB / 1.113 GB, free: 4.859 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.5665, allocations: 4 kB / 1.113 GB, free: 4.855 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00026/0.5668, allocations: 67.84 kB / 1.113 GB, free: 4.789 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.5668, allocations: 14.66 kB / 1.113 GB, free: 4.777 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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.688e-05/0.5669, allocations: 109.9 kB / 1.113 GB, free: 4.664 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.693e-05/0.567, allocations: 7.906 kB / 1.113 GB, free: 4.656 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002035/0.5672, allocations: 109.2 kB / 1.113 GB, free: 4.543 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.5672, allocations: 7.906 kB / 1.113 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.5672, allocations: 0 / 1.113 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.5672, allocations: 0 / 1.113 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003298/0.5675, allocations: 362.9 kB / 1.113 GB, free: 4.137 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.5676, allocations: 0 / 1.113 GB, free: 4.137 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.5677, allocations: 31.97 kB / 1.113 GB, free: 4.105 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.5677, allocations: 0 / 1.113 GB, free: 4.105 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.5677, allocations: 0.8438 kB / 1.113 GB, free: 4.105 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.5677, allocations: 4 kB / 1.113 GB, free: 4.102 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.5677, allocations: 4 kB / 1.113 GB, free: 4.098 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001862/0.5679, allocations: 199.3 kB / 1.114 GB, free: 3.887 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.748e-05/0.568, allocations: 96.84 kB / 1.114 GB, free: 3.773 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.702e-05/0.568, allocations: 0 / 1.114 GB, free: 3.773 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.5681, allocations: 15.98 kB / 1.114 GB, free: 3.758 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.748e-05/0.5682, allocations: 19.97 kB / 1.114 GB, free: 3.738 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.5682, allocations: 8 kB / 1.114 GB, free: 3.73 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.584e-05/0.5683, allocations: 96.11 kB / 1.114 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002612/0.5686, allocations: 24 kB / 1.114 GB, free: 3.613 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (triggeredSampler.trigger,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * 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.0001703/0.5687, allocations: 117.3 kB / 1.114 GB, free: 3.492 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002466/0.569, allocations: 137.6 kB / 1.114 GB, free: 3.352 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.569, allocations: 0 / 1.114 GB, free: 3.352 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.829e-05/0.5691, allocations: 47.88 kB / 1.114 GB, free: 3.305 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/0.5693, allocations: 24.02 kB / 1.114 GB, free: 3.285 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003208/0.5697, allocations: 119.3 kB / 1.114 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/0.5699, allocations: 0.7191 MB / 1.115 GB, free: 2.398 MB / 0.7136 GB Notification: Performance of SimCode: time 2.41e-07/0.57, allocations: 0 / 1.115 GB, free: 2.398 MB / 0.7136 GB Notification: Performance of Templates: time 0.004068/0.574, allocations: 1.758 MB / 1.117 GB, free: 0.6797 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)