Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.188/2.188, allocations: 284.8 MB / 292.1 MB, free: 9.855 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.001604/0.001603, allocations: 186.5 kB / 360.3 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.715/1.715, allocations: 205.1 MB / 0.6187 GB, free: 3.328 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001229/0.001229, allocations: 91.81 kB / 0.7317 GB, free: 1.809 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.5088/0.5101, allocations: 121.4 MB / 0.8502 GB, free: 149.9 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.7078, allocations: 115.2 MB / 0.9628 GB, free: 56.99 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6071/1.315, allocations: 137.6 MB / 1.097 GB, free: 44.42 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/1.315, allocations: 71.5 kB / 1.097 GB, free: 44.42 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.01145/1.327, allocations: 2.615 MB / 1.1 GB, free: 43.9 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/1.327, allocations: 7.75 kB / 1.1 GB, free: 43.9 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.761e-05/1.327, allocations: 14.53 kB / 1.1 GB, free: 43.89 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/1.327, allocations: 174.6 kB / 1.1 GB, free: 43.69 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/1.327, allocations: 3.938 kB / 1.1 GB, free: 43.69 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.286e-05/1.327, allocations: 11.75 kB / 1.1 GB, free: 43.69 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000164/1.327, allocations: 34.75 kB / 1.1 GB, free: 43.69 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001526/1.327, allocations: 71.2 kB / 1.1 GB, free: 43.65 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/1.327, allocations: 0 / 1.1 GB, free: 43.65 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/1.327, allocations: 3.906 kB / 1.1 GB, free: 43.65 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/1.327, allocations: 0 / 1.1 GB, free: 43.65 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006226/1.328, allocations: 355.3 kB / 1.1 GB, free: 43.41 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/1.328, allocations: 60.14 kB / 1.101 GB, free: 43.38 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.507e-05/1.328, allocations: 31.92 kB / 1.101 GB, free: 43.38 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.196e-05/1.328, allocations: 0 / 1.101 GB, free: 43.38 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001439/1.329, allocations: 91.81 kB / 1.101 GB, free: 43.32 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.973e-06/1.329, allocations: 0 / 1.101 GB, free: 43.32 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0002928/1.329, allocations: 102.6 kB / 1.101 GB, free: 43.28 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.349e-05/1.329, allocations: 51.41 kB / 1.101 GB, free: 43.21 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.447e-05/1.329, allocations: 112.3 kB / 1.101 GB, free: 43.12 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.687e-05/1.329, allocations: 30.95 kB / 1.101 GB, free: 43.09 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.474e-05/1.329, allocations: 95.22 kB / 1.101 GB, free: 43.01 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.397e-05/1.329, allocations: 23.91 kB / 1.101 GB, free: 42.99 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.296e-05/1.329, allocations: 0 / 1.101 GB, free: 42.99 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.176e-05/1.329, allocations: 324.6 kB / 1.101 GB, free: 42.68 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/1.329, allocations: 53.8 kB / 1.101 GB, free: 42.68 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/1.33, allocations: 79.41 kB / 1.101 GB, free: 42.64 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/1.33, allocations: 59.64 kB / 1.102 GB, free: 42.63 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/1.33, allocations: 0 / 1.102 GB, free: 42.63 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005979/1.331, allocations: 183.9 kB / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/1.331, allocations: 7.875 kB / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/1.331, allocations: 0 / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/1.331, allocations: 3.938 kB / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002802/1.331, allocations: 37.22 kB / 1.102 GB, free: 42.57 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/1.331, allocations: 0.625 kB / 1.102 GB, free: 42.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000485/1.331, allocations: 63.8 kB / 1.102 GB, free: 42.56 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.446e-05/1.332, allocations: 6.875 kB / 1.102 GB, free: 42.56 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.518e-05/1.332, allocations: 120.5 kB / 1.102 GB, free: 42.45 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.655e-05/1.332, allocations: 7.781 kB / 1.102 GB, free: 42.45 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002769/1.332, allocations: 103.6 kB / 1.102 GB, free: 42.41 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/1.332, allocations: 1.922 kB / 1.102 GB, free: 42.41 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/1.332, allocations: 5.781 kB / 1.102 GB, free: 42.41 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/1.332, allocations: 0.6562 kB / 1.102 GB, free: 42.41 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004315/1.332, allocations: 365.8 kB / 1.102 GB, free: 42.13 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/1.332, allocations: 3.906 kB / 1.102 GB, free: 42.13 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002075/1.333, allocations: 25.31 kB / 1.102 GB, free: 42.13 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/1.333, allocations: 3.594 kB / 1.102 GB, free: 42.13 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/1.333, allocations: 0 / 1.102 GB, free: 42.13 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/1.333, allocations: 7.984 kB / 1.102 GB, free: 42.12 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.333, allocations: 3.938 kB / 1.102 GB, free: 42.12 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002328/1.333, allocations: 197.5 kB / 1.103 GB, free: 41.98 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002785/1.333, allocations: 0.5631 MB / 1.103 GB, free: 41.46 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.952e-05/1.333, allocations: 88.83 kB / 1.103 GB, free: 41.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/1.333, allocations: 7.797 kB / 1.103 GB, free: 41.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/1.334, allocations: 20.47 kB / 1.103 GB, free: 41.36 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.146e-05/1.334, allocations: 13.8 kB / 1.103 GB, free: 41.36 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/1.334, allocations: 6.25 kB / 1.103 GB, free: 41.36 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0001271/1.334, allocations: 95.81 kB / 1.103 GB, free: 57.28 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.00121/1.335, allocations: 37.72 kB / 1.103 GB, free: 57.27 MB / 0.7292 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.0001944/1.335, allocations: 111.6 kB / 1.104 GB, free: 57.18 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003854/1.336, allocations: 139.5 kB / 1.104 GB, free: 57.14 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.336, allocations: 3.938 kB / 1.104 GB, free: 57.14 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/1.336, allocations: 38.25 kB / 1.104 GB, free: 57.14 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/1.336, allocations: 17.84 kB / 1.104 GB, free: 57.13 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004457/1.337, allocations: 124.9 kB / 1.104 GB, free: 57.05 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003586/1.337, allocations: 0.7196 MB / 1.105 GB, free: 56.35 MB / 0.7292 GB Notification: Performance of SimCode: time 7.82e-07/1.337, allocations: 0 / 1.105 GB, free: 56.35 MB / 0.7292 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)