Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_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.0.1-maint.8.0.x/package.mo): time 1.339/1.339, allocations: 285.5 MB / 292.8 MB, free: 10.44 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.0009515/0.0009515, allocations: 185.2 kB / 361.1 MB, free: 7.086 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.076/1.076, allocations: 205.1 MB / 0.6195 GB, free: 10.28 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.0008159/0.0008159, allocations: 97.19 kB / 0.7326 GB, free: 44.19 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.176e-06/8.196e-06, allocations: 4 kB / 0.8511 GB, free: 2.922 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4572/0.4572, allocations: 115.3 MB / 0.9637 GB, free: 78.53 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.141/0.5982, allocations: 137.8 MB / 1.098 GB, free: 2.234 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001885/0.5985, allocations: 70.38 kB / 1.098 GB, free: 2.168 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.006816/0.6053, allocations: 2.18 MB / 1.1 GB, free: 56 kB / 0.698 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.6053, allocations: 0 / 1.1 GB, free: 56 kB / 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.0005542/0.6059, allocations: 436 kB / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.6059, allocations: 8.031 kB / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.986e-05/0.606, allocations: 14.09 kB / 1.101 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.6061, allocations: 174.9 kB / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.6061, allocations: 4 kB / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.585e-05/0.6062, allocations: 12 kB / 1.101 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001214/0.6063, allocations: 41.11 kB / 1.101 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.6064, allocations: 71.98 kB / 1.101 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.6064, allocations: 0 / 1.101 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.6064, allocations: 3.984 kB / 1.101 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.6065, allocations: 4 kB / 1.101 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004802/0.6069, allocations: 346 kB / 1.102 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.6071, allocations: 58.64 kB / 1.102 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.569e-05/0.6071, allocations: 36.84 kB / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.6072, allocations: 4.844 kB / 1.102 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001034/0.6073, allocations: 89.09 kB / 1.102 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.6073, allocations: 0 / 1.102 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0002153/0.6075, allocations: 101 kB / 1.102 GB, free: 14.53 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/0.6075, allocations: 55.41 kB / 1.102 GB, free: 14.46 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.793e-05/0.6076, allocations: 113.1 kB / 1.102 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.6076, allocations: 33.7 kB / 1.102 GB, free: 14.3 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.667e-05/0.6077, allocations: 96.03 kB / 1.102 GB, free: 14.21 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.6077, allocations: 27.64 kB / 1.102 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.515e-05/0.6078, allocations: 4 kB / 1.102 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.6079, allocations: 326.7 kB / 1.102 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.602e-05/0.608, allocations: 51.98 kB / 1.102 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.6081, allocations: 78.7 kB / 1.103 GB, free: 13.71 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/0.6083, allocations: 66.77 kB / 1.103 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.6083, allocations: 0 / 1.103 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003683/0.6087, allocations: 173.4 kB / 1.103 GB, free: 13.47 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/0.6087, allocations: 4 kB / 1.103 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.6087, allocations: 4 kB / 1.103 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.6087, allocations: 3.984 kB / 1.103 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.6089, allocations: 28.11 kB / 1.103 GB, free: 13.43 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.6089, allocations: 4 kB / 1.103 GB, free: 13.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.6092, allocations: 67.8 kB / 1.103 GB, free: 13.36 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.6092, allocations: 17.42 kB / 1.103 GB, free: 13.34 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 7.848e-05/0.6093, allocations: 105.7 kB / 1.103 GB, free: 13.23 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.577e-05/0.6093, allocations: 7.906 kB / 1.103 GB, free: 13.23 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000182/0.6095, allocations: 102 kB / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.6095, allocations: 9.453 kB / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.6095, allocations: 0 / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.6095, allocations: 3.984 kB / 1.103 GB, free: 13.11 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003197/0.6099, allocations: 359.7 kB / 1.103 GB, free: 12.72 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6099, allocations: 0 / 1.103 GB, free: 12.72 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.61, allocations: 31.91 kB / 1.104 GB, free: 12.69 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.61, allocations: 4 kB / 1.104 GB, free: 12.68 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.61, allocations: 0 / 1.104 GB, free: 12.68 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.61, allocations: 6.188 kB / 1.104 GB, free: 12.68 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.61, allocations: 0 / 1.104 GB, free: 12.68 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001762/0.6102, allocations: 192.2 kB / 1.104 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.54e-05/0.6103, allocations: 92.86 kB / 1.104 GB, free: 12.37 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.6103, allocations: 1.125 kB / 1.104 GB, free: 12.37 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.6104, allocations: 23.97 kB / 1.104 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.007e-05/0.6105, allocations: 19.97 kB / 1.104 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.6105, allocations: 0 / 1.104 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.742e-05/0.6106, allocations: 95.27 kB / 1.104 GB, free: 12.23 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002438/0.6108, allocations: 28 kB / 1.104 GB, free: 12.2 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.0001516/0.611, allocations: 127.6 kB / 1.104 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002381/0.6112, allocations: 140.5 kB / 1.104 GB, free: 11.93 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.6112, allocations: 0 / 1.104 GB, free: 11.93 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.421e-05/0.6113, allocations: 43.98 kB / 1.104 GB, free: 11.88 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001971/0.6115, allocations: 13.03 kB / 1.104 GB, free: 11.87 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003046/0.6119, allocations: 136 kB / 1.104 GB, free: 11.72 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002761/0.6121, allocations: 0.7161 MB / 1.105 GB, free: 10.98 MB / 0.7136 GB Notification: Performance of SimCode: time 2.31e-07/0.6121, allocations: 0 / 1.105 GB, free: 10.98 MB / 0.7136 GB Notification: Performance of Templates: time 0.003743/0.6159, allocations: 1.759 MB / 1.107 GB, free: 9.301 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)