Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.218/1.218, allocations: 249.4 MB / 256.7 MB, free: 7.098 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.0009281/0.0009281, allocations: 181.3 kB / 316 MB, free: 3.582 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.194/1.194, allocations: 205.1 MB / 0.5667 GB, free: 15.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00088/0.0008802, allocations: 91.89 kB / 0.671 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3572/0.3581, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.5256, allocations: 106.3 MB / 0.8847 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5165/1.042, allocations: 132.4 MB / 1.014 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/1.042, allocations: 69.77 kB / 1.014 GB, free: 6.148 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.004331/1.047, allocations: 1.466 MB / 1.015 GB, free: 4.789 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/1.047, allocations: 12 kB / 1.015 GB, free: 4.777 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.657e-05/1.047, allocations: 7.906 kB / 1.015 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/1.047, allocations: 178.8 kB / 1.016 GB, free: 4.555 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/1.047, allocations: 4 kB / 1.016 GB, free: 4.551 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.737e-05/1.047, allocations: 4 kB / 1.016 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001229/1.047, allocations: 43.67 kB / 1.016 GB, free: 4.52 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/1.047, allocations: 63.73 kB / 1.016 GB, free: 4.461 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/1.047, allocations: 4 kB / 1.016 GB, free: 4.457 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/1.047, allocations: 3.984 kB / 1.016 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/1.047, allocations: 5.5 kB / 1.016 GB, free: 4.449 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005257/1.048, allocations: 328.3 kB / 1.016 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/1.048, allocations: 56.27 kB / 1.016 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.417e-05/1.048, allocations: 31.73 kB / 1.016 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/1.048, allocations: 7.922 kB / 1.016 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001104/1.048, allocations: 83.69 kB / 1.016 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/1.048, allocations: 0 / 1.016 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0002122/1.049, allocations: 79.22 kB / 1.016 GB, free: 3.891 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/1.049, allocations: 55.41 kB / 1.016 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.29e-05/1.049, allocations: 111.7 kB / 1.016 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/1.049, allocations: 32.95 kB / 1.017 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.826e-05/1.049, allocations: 95.98 kB / 1.017 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.186e-05/1.049, allocations: 30.58 kB / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-06/1.049, allocations: 0 / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001171/1.049, allocations: 321.6 kB / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.44e-05/1.049, allocations: 27.38 kB / 1.017 GB, free: 3.219 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.153e-05/1.049, allocations: 63.48 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.951e-05/1.049, allocations: 25.03 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/1.049, allocations: 0 / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001737/1.049, allocations: 106.5 kB / 1.017 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/1.049, allocations: 6.188 kB / 1.017 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/1.049, allocations: 4 kB / 1.017 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/1.049, allocations: 0.8438 kB / 1.017 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/1.05, allocations: 36 kB / 1.017 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/1.05, allocations: 4 kB / 1.017 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/1.05, allocations: 31.88 kB / 1.017 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/1.05, allocations: 15.5 kB / 1.017 GB, free: 2.961 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 8.432e-05/1.05, allocations: 105 kB / 1.017 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.793e-05/1.05, allocations: 11.84 kB / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001838/1.05, allocations: 98.5 kB / 1.017 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/1.05, allocations: 0 / 1.017 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/1.05, allocations: 3.938 kB / 1.017 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/1.05, allocations: 7.906 kB / 1.017 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003438/1.05, allocations: 350 kB / 1.018 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/1.051, allocations: 7.891 kB / 1.018 GB, free: 2.387 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/1.051, allocations: 23.92 kB / 1.018 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/1.051, allocations: 0 / 1.018 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/1.051, allocations: 0 / 1.018 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/1.051, allocations: 8 kB / 1.018 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.051, allocations: 0 / 1.018 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001824/1.051, allocations: 179.6 kB / 1.018 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00033/1.051, allocations: 0.5629 MB / 1.019 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.061e-05/1.051, allocations: 88.95 kB / 1.019 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/1.051, allocations: 7.984 kB / 1.019 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/1.051, allocations: 19.98 kB / 1.019 GB, free: 1.484 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.533e-05/1.052, allocations: 27.89 kB / 1.019 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/1.052, allocations: 7.984 kB / 1.019 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.719e-05/1.052, allocations: 91.34 kB / 1.019 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0007625/1.052, allocations: 19.91 kB / 1.019 GB, free: 1.352 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.0001472/1.053, allocations: 103.2 kB / 1.019 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001596/1.053, allocations: 79.38 kB / 1.019 GB, free: 1.188 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/1.053, allocations: 0 / 1.019 GB, free: 1.188 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.224e-05/1.053, allocations: 40.98 kB / 1.019 GB, free: 1.156 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/1.053, allocations: 19.92 kB / 1.019 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003584/1.053, allocations: 121 kB / 1.019 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000342/1.054, allocations: 0.7165 MB / 1.02 GB, free: 280 kB / 0.6355 GB Notification: Performance of SimCode: time 2.4e-07/1.054, allocations: 0 / 1.02 GB, free: 280 kB / 0.6355 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)