Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.106/2.106, allocations: 284.9 MB / 292.2 MB, free: 10.7 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001573/0.001573, allocations: 185.2 kB / 360.4 MB, free: 7.488 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.622/1.622, allocations: 205.1 MB / 0.6188 GB, free: 12.39 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00125/0.001249, allocations: 92.05 kB / 0.7318 GB, free: 44.97 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.129e-05/1.143e-05, allocations: 4 kB / 0.8503 GB, free: 3.82 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5516/0.5516, allocations: 115.2 MB / 0.9628 GB, free: 78.36 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2028/0.7545, allocations: 137.6 MB / 1.097 GB, free: 3.02 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/0.7549, allocations: 69.72 kB / 1.097 GB, free: 2.953 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.01215/0.767, allocations: 2.184 MB / 1.099 GB, free: 0.8281 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.121e-05/0.7671, allocations: 4 kB / 1.099 GB, free: 0.8242 MB / 0.698 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.0007998/0.7679, allocations: 435.9 kB / 1.1 GB, free: 356 kB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.7679, allocations: 8.031 kB / 1.1 GB, free: 348 kB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.602e-05/0.768, allocations: 11.91 kB / 1.1 GB, free: 336 kB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.7682, allocations: 178.8 kB / 1.1 GB, free: 116 kB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.7682, allocations: 0 / 1.1 GB, free: 116 kB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.237e-05/0.7683, allocations: 8 kB / 1.1 GB, free: 108 kB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001823/0.7685, allocations: 43.98 kB / 1.1 GB, free: 64 kB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001678/0.7686, allocations: 60.48 kB / 1.1 GB, free: 0 / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.7687, allocations: 8.562 kB / 1.1 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.7687, allocations: 0 / 1.1 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.7687, allocations: 4.656 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007342/0.7695, allocations: 353.7 kB / 1.1 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.7697, allocations: 63.72 kB / 1.101 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.839e-05/0.7698, allocations: 36.86 kB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.7698, allocations: 192 / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001734/0.77, allocations: 87.25 kB / 1.101 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.754e-06/0.77, allocations: 1.875 kB / 1.101 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0003299/0.7704, allocations: 98.48 kB / 1.101 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.7704, allocations: 51.41 kB / 1.101 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.7705, allocations: 113 kB / 1.101 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.531e-05/0.7706, allocations: 33.7 kB / 1.101 GB, free: 15.08 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.782e-05/0.7707, allocations: 100 kB / 1.101 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.392e-05/0.7707, allocations: 27.64 kB / 1.101 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.299e-05/0.7708, allocations: 0 / 1.101 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001752/0.7709, allocations: 322.8 kB / 1.101 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.7711, allocations: 44 kB / 1.101 GB, free: 14.58 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.7714, allocations: 94.53 kB / 1.102 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003548/0.7717, allocations: 53.58 kB / 1.102 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.7717, allocations: 3.938 kB / 1.102 GB, free: 14.42 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006558/0.7724, allocations: 181.6 kB / 1.102 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.7724, allocations: 4 kB / 1.102 GB, free: 14.23 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.7725, allocations: 0 / 1.102 GB, free: 14.23 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.7725, allocations: 4.875 kB / 1.102 GB, free: 14.23 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002687/0.7728, allocations: 27.92 kB / 1.102 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.7728, allocations: 3.984 kB / 1.102 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005252/0.7733, allocations: 63.89 kB / 1.102 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.7734, allocations: 8.75 kB / 1.102 GB, free: 14.13 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 0.0001252/0.7735, allocations: 121.7 kB / 1.102 GB, free: 14 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.774e-05/0.7736, allocations: 11.91 kB / 1.102 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003015/0.7739, allocations: 102 kB / 1.102 GB, free: 13.89 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.7739, allocations: 0 / 1.102 GB, free: 13.89 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.7739, allocations: 5.219 kB / 1.102 GB, free: 13.89 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.7739, allocations: 4 kB / 1.102 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005373/0.7745, allocations: 358.5 kB / 1.102 GB, free: 13.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.7745, allocations: 7.734 kB / 1.102 GB, free: 13.49 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002212/0.7747, allocations: 27.98 kB / 1.102 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.7747, allocations: 4.562 kB / 1.102 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.7748, allocations: 0 / 1.102 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.7748, allocations: 0 / 1.102 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.7748, allocations: 0 / 1.102 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002887/0.7751, allocations: 209.6 kB / 1.103 GB, free: 13.24 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.287e-05/0.7751, allocations: 88.86 kB / 1.103 GB, free: 13.13 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.861e-05/0.7752, allocations: 4 kB / 1.103 GB, free: 13.13 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002395/0.7754, allocations: 15.98 kB / 1.103 GB, free: 13.11 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.512e-05/0.7755, allocations: 19.97 kB / 1.103 GB, free: 13.09 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.7756, allocations: 8.594 kB / 1.103 GB, free: 13.09 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.711e-05/0.7757, allocations: 90.28 kB / 1.103 GB, free: 13 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003924/0.7761, allocations: 32.12 kB / 1.103 GB, free: 12.97 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.0002031/0.7763, allocations: 116.4 kB / 1.103 GB, free: 12.84 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004024/0.7767, allocations: 133.6 kB / 1.103 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.7767, allocations: 0 / 1.103 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.7769, allocations: 48.12 kB / 1.103 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.7772, allocations: 15.98 kB / 1.103 GB, free: 12.64 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000468/0.7777, allocations: 127.8 kB / 1.103 GB, free: 12.5 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003408/0.778, allocations: 0.7153 MB / 1.104 GB, free: 11.76 MB / 0.7136 GB Notification: Performance of SimCode: time 8.82e-07/0.778, allocations: 0 / 1.104 GB, free: 11.76 MB / 0.7136 GB Notification: Performance of Templates: time 0.006313/0.7844, allocations: 1.759 MB / 1.106 GB, free: 10.07 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)