Running: ./testmodel.py --libraries=/home/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 (/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",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 7.0.1/package.mo): time 2.434/2.434, allocations: 248.6 MB / 255.9 MB, free: 7.145 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003024/0.003024, allocations: 189.2 kB / 315.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.924/1.924, allocations: 205.1 MB / 0.5658 GB, free: 372 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001293/0.001293, allocations: 94.56 kB / 0.67 GB, free: 5.586 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4506/0.4519, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.6736, allocations: 106.2 MB / 0.8835 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6411/1.315, allocations: 132.1 MB / 1.013 GB, free: 8.031 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002661/1.315, allocations: 71.83 kB / 1.013 GB, free: 7.992 MB / 0.6355 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.007069/1.322, allocations: 1.473 MB / 1.014 GB, free: 6.629 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/1.322, allocations: 12 kB / 1.014 GB, free: 6.617 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.862e-05/1.322, allocations: 7.906 kB / 1.014 GB, free: 6.609 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001913/1.323, allocations: 182.5 kB / 1.014 GB, free: 6.395 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/1.323, allocations: 4 kB / 1.014 GB, free: 6.391 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/1.323, allocations: 4 kB / 1.014 GB, free: 6.387 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001962/1.323, allocations: 43.86 kB / 1.014 GB, free: 6.359 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001853/1.323, allocations: 64.17 kB / 1.014 GB, free: 6.301 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/1.323, allocations: 4 kB / 1.014 GB, free: 6.297 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/1.323, allocations: 0 / 1.014 GB, free: 6.297 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/1.323, allocations: 7.984 kB / 1.014 GB, free: 6.289 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008304/1.324, allocations: 322.4 kB / 1.015 GB, free: 5.965 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002742/1.324, allocations: 63.81 kB / 1.015 GB, free: 5.91 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.509e-05/1.324, allocations: 31.67 kB / 1.015 GB, free: 5.887 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/1.324, allocations: 0 / 1.015 GB, free: 5.887 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/1.325, allocations: 85.58 kB / 1.015 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.254e-06/1.325, allocations: 0 / 1.015 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003236/1.325, allocations: 88.02 kB / 1.015 GB, free: 5.727 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/1.325, allocations: 51.41 kB / 1.015 GB, free: 5.664 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/1.325, allocations: 122.1 kB / 1.015 GB, free: 5.543 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/1.325, allocations: 29.64 kB / 1.015 GB, free: 5.508 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.477e-05/1.325, allocations: 95.3 kB / 1.015 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/1.325, allocations: 23.03 kB / 1.015 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.16e-05/1.325, allocations: 0 / 1.015 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001835/1.326, allocations: 329.2 kB / 1.016 GB, free: 5.07 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/1.326, allocations: 26.12 kB / 1.016 GB, free: 5.055 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/1.326, allocations: 56.98 kB / 1.016 GB, free: 5 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.636e-05/1.326, allocations: 23.59 kB / 1.016 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/1.326, allocations: 0 / 1.016 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003269/1.326, allocations: 112.5 kB / 1.016 GB, free: 4.887 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.4e-05/1.326, allocations: 8 kB / 1.016 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/1.326, allocations: 0 / 1.016 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/1.326, allocations: 0 / 1.016 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003177/1.327, allocations: 36 kB / 1.016 GB, free: 4.844 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/1.327, allocations: 4 kB / 1.016 GB, free: 4.84 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002836/1.327, allocations: 31.27 kB / 1.016 GB, free: 4.812 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/1.327, allocations: 11.94 kB / 1.016 GB, free: 4.801 MB / 0.6355 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.0001287/1.327, allocations: 109 kB / 1.016 GB, free: 4.688 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.242e-05/1.327, allocations: 7.906 kB / 1.016 GB, free: 4.68 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003171/1.328, allocations: 95.38 kB / 1.016 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/1.328, allocations: 4 kB / 1.016 GB, free: 4.594 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/1.328, allocations: 0 / 1.016 GB, free: 4.594 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/1.328, allocations: 3.938 kB / 1.016 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000593/1.328, allocations: 351.2 kB / 1.016 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/1.328, allocations: 0.875 kB / 1.016 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/1.328, allocations: 23.97 kB / 1.016 GB, free: 4.211 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/1.328, allocations: 7.844 kB / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/1.328, allocations: 4 kB / 1.016 GB, free: 4.199 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/1.329, allocations: 4 kB / 1.016 GB, free: 4.195 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/1.329, allocations: 3.984 kB / 1.016 GB, free: 4.191 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000294/1.329, allocations: 188.8 kB / 1.017 GB, free: 4.008 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004478/1.329, allocations: 0.5555 MB / 1.017 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.854e-05/1.329, allocations: 92.94 kB / 1.017 GB, free: 3.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.956e-05/1.329, allocations: 6.75 kB / 1.017 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003435/1.33, allocations: 27.97 kB / 1.017 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/1.33, allocations: 15.41 kB / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/1.33, allocations: 11.94 kB / 1.017 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.343e-05/1.33, allocations: 95.89 kB / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001216/1.331, allocations: 16 kB / 1.017 GB, free: 3.184 MB / 0.6355 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.0001809/1.331, allocations: 103.2 kB / 1.018 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002843/1.332, allocations: 81.36 kB / 1.018 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/1.332, allocations: 0 / 1.018 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001284/1.332, allocations: 42.48 kB / 1.018 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003539/1.332, allocations: 15.8 kB / 1.018 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005393/1.333, allocations: 125.1 kB / 1.018 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004505/1.333, allocations: 0.7191 MB / 1.018 GB, free: 2.098 MB / 0.6355 GB Notification: Performance of SimCode: time 9.62e-07/1.333, allocations: 0 / 1.018 GB, free: 2.098 MB / 0.6355 GB