Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json 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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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 7.0.1/package.mo): time 2.45/2.45, allocations: 253.1 MB / 260.4 MB, free: 8.523 MB / 206.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001914/0.001914, allocations: 181.3 kB / 319.6 MB, free: 8.098 MB / 254.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.143/2.143, allocations: 205.4 MB / 0.5704 GB, free: 4.254 MB / 414.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001397/0.001396, allocations: 96.3 kB / 0.6746 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 1.174e-05/1.19e-05, allocations: 4 kB / 0.7843 GB, free: 106.8 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2464, allocations: 106.2 MB / 0.8881 GB, free: 0.4922 MB / 0.545 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7292/0.9756, allocations: 132.1 MB / 1.017 GB, free: 12.82 MB / 0.6387 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/0.976, allocations: 74.45 kB / 1.017 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of FrontEnd: time 0.006297/0.9823, allocations: 1.061 MB / 1.018 GB, free: 11.86 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.116e-05/0.9824, allocations: 4.656 kB / 1.018 GB, free: 11.86 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008987/0.9833, allocations: 414.9 kB / 1.019 GB, free: 11.41 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.581e-05/0.9834, allocations: 12.03 kB / 1.019 GB, free: 11.4 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.534e-05/0.9834, allocations: 7.906 kB / 1.019 GB, free: 11.39 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.9836, allocations: 188.2 kB / 1.019 GB, free: 11.18 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.9837, allocations: 4 kB / 1.019 GB, free: 11.17 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.9837, allocations: 4 kB / 1.019 GB, free: 11.17 MB / 0.6387 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001922/0.9839, allocations: 45.73 kB / 1.019 GB, free: 11.14 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001891/0.9841, allocations: 65.11 kB / 1.019 GB, free: 11.08 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.9841, allocations: 0 / 1.019 GB, free: 11.08 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.9842, allocations: 0 / 1.019 GB, free: 11.08 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.9842, allocations: 4 kB / 1.019 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007803/0.985, allocations: 330.7 kB / 1.019 GB, free: 10.74 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002782/0.9853, allocations: 63.39 kB / 1.019 GB, free: 10.69 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.409e-05/0.9854, allocations: 30.98 kB / 1.019 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 3.341e-05/0.9855, allocations: 0 / 1.019 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000173/0.9857, allocations: 86.56 kB / 1.019 GB, free: 10.58 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=11): time 1.714e-06/0.9857, allocations: 0 / 1.019 GB, free: 10.58 MB / 0.6387 GB Notification: Performance of matching and sorting (n=11): time 0.0003237/0.986, allocations: 86.59 kB / 1.019 GB, free: 10.5 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.9861, allocations: 51.41 kB / 1.019 GB, free: 10.44 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.9862, allocations: 120.4 kB / 1.02 GB, free: 10.32 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.9862, allocations: 29.27 kB / 1.02 GB, free: 10.29 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 5.229e-05/0.9863, allocations: 95.73 kB / 1.02 GB, free: 10.2 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 4.86e-05/0.9864, allocations: 22.78 kB / 1.02 GB, free: 10.18 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.135e-05/0.9864, allocations: 0 / 1.02 GB, free: 10.18 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.9865, allocations: 322.4 kB / 1.02 GB, free: 9.855 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.928e-05/0.9866, allocations: 29.44 kB / 1.02 GB, free: 9.84 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.9868, allocations: 61.92 kB / 1.02 GB, free: 9.777 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.65e-05/0.9869, allocations: 23.05 kB / 1.02 GB, free: 9.762 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.9869, allocations: 0 / 1.02 GB, free: 9.762 MB / 0.6387 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002987/0.9872, allocations: 111 kB / 1.02 GB, free: 9.672 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.9872, allocations: 7.938 kB / 1.02 GB, free: 9.664 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.9873, allocations: 4 kB / 1.02 GB, free: 9.66 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.9873, allocations: 0 / 1.02 GB, free: 9.66 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002886/0.9876, allocations: 36.06 kB / 1.02 GB, free: 9.625 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.9876, allocations: 3.938 kB / 1.02 GB, free: 9.621 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/0.9879, allocations: 35.88 kB / 1.02 GB, free: 9.586 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.9879, allocations: 4 kB / 1.02 GB, free: 9.582 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,$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 (16): * Single equations (assignments): 16 * Array equations: 0 * 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 0.0001062/0.9881, allocations: 112.5 kB / 1.02 GB, free: 9.469 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.876e-05/0.9881, allocations: 11.89 kB / 1.02 GB, free: 9.457 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003042/0.9884, allocations: 102.3 kB / 1.021 GB, free: 9.367 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.9884, allocations: 0 / 1.021 GB, free: 9.367 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.9884, allocations: 4 kB / 1.021 GB, free: 9.363 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.9885, allocations: 0 / 1.021 GB, free: 9.363 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006051/0.9891, allocations: 344.6 kB / 1.021 GB, free: 9.012 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.9891, allocations: 0 / 1.021 GB, free: 9.012 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002306/0.9893, allocations: 35.47 kB / 1.021 GB, free: 8.98 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.096e-06/0.9894, allocations: 3.906 kB / 1.021 GB, free: 8.977 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.9894, allocations: 7.938 kB / 1.021 GB, free: 8.969 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.9894, allocations: 0 / 1.021 GB, free: 8.969 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.9894, allocations: 0 / 1.021 GB, free: 8.969 MB / 0.6387 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002888/0.9897, allocations: 187.9 kB / 1.021 GB, free: 8.785 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 5.486e-05/0.9898, allocations: 92.95 kB / 1.021 GB, free: 8.676 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.644e-05/0.9898, allocations: 0 / 1.021 GB, free: 8.676 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003076/0.9902, allocations: 27.97 kB / 1.021 GB, free: 8.648 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.9903, allocations: 23.12 kB / 1.021 GB, free: 8.629 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.9903, allocations: 7.984 kB / 1.021 GB, free: 8.621 MB / 0.6387 GB Notification: Performance of sort global known variables: time 7.456e-05/0.9904, allocations: 92.41 kB / 1.021 GB, free: 8.539 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0003516/0.9907, allocations: 16 kB / 1.021 GB, free: 8.523 MB / 0.6387 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 (triggeredSampler.trigger,$whenCondition2,$whenCondition1,booPul1.pulseStart,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 (11): * Single equations (assignments): 9 * 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.000181/0.9909, allocations: 109.6 kB / 1.021 GB, free: 8.41 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0002886/0.9912, allocations: 71.06 kB / 1.022 GB, free: 8.363 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.351e-06/0.9913, allocations: 0 / 1.022 GB, free: 8.363 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.9914, allocations: 42.75 kB / 1.022 GB, free: 8.332 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.9918, allocations: 14.86 kB / 1.022 GB, free: 8.32 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005207/0.9923, allocations: 122.8 kB / 1.022 GB, free: 8.195 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003811/0.9927, allocations: 0.7152 MB / 1.022 GB, free: 7.453 MB / 0.6387 GB Notification: Performance of SimCode: time 6.11e-07/0.9927, allocations: 0 / 1.022 GB, free: 7.453 MB / 0.6387 GB Notification: Performance of Templates: time 0.005477/0.9982, allocations: 1.292 MB / 1.024 GB, free: 6.188 MB / 0.6387 GB