Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.244/1.244, allocations: 249.4 MB / 256.7 MB, free: 7.035 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.00104/0.00104, allocations: 177.3 kB / 316 MB, free: 3.57 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.151/1.151, 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.0008222/0.0008222, allocations: 86.2 kB / 0.671 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3196/0.3204, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.475, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4503/0.9253, allocations: 131.9 MB / 1.013 GB, free: 6.684 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001752/0.9255, allocations: 73.59 kB / 1.014 GB, free: 6.645 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.002546/0.9281, allocations: 0.9151 MB / 1.014 GB, free: 5.773 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.9281, allocations: 12 kB / 1.014 GB, free: 5.762 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.517e-05/0.9282, allocations: 11.83 kB / 1.014 GB, free: 5.754 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.9283, allocations: 175 kB / 1.015 GB, free: 5.543 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.9283, allocations: 0 / 1.015 GB, free: 5.543 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.9284, allocations: 4 kB / 1.015 GB, free: 5.539 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.658e-05/0.9284, allocations: 15.22 kB / 1.015 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.79e-05/0.9285, allocations: 53.42 kB / 1.015 GB, free: 5.477 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-06/0.9286, allocations: 0 / 1.015 GB, free: 5.477 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.9286, allocations: 0 / 1.015 GB, free: 5.477 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.9286, allocations: 0 / 1.015 GB, free: 5.477 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003739/0.929, allocations: 252 kB / 1.015 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.03e-05/0.929, allocations: 45.02 kB / 1.015 GB, free: 5.16 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.273e-05/0.9291, allocations: 12.73 kB / 1.015 GB, free: 5.148 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.9291, allocations: 4 kB / 1.015 GB, free: 5.145 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.033e-05/0.9292, allocations: 55.09 kB / 1.015 GB, free: 5.086 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.9292, allocations: 4 kB / 1.015 GB, free: 5.082 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001599/0.9294, allocations: 63.66 kB / 1.015 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.9294, allocations: 51.41 kB / 1.015 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.605e-05/0.9295, allocations: 103.7 kB / 1.015 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.9295, allocations: 28.33 kB / 1.015 GB, free: 4.824 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.358e-05/0.9296, allocations: 84.14 kB / 1.015 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.9296, allocations: 14.73 kB / 1.015 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.9296, allocations: 0 / 1.015 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.965e-05/0.9297, allocations: 318.7 kB / 1.016 GB, free: 4.41 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.486e-05/0.9297, allocations: 10.75 kB / 1.016 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.076e-05/0.9298, allocations: 43.48 kB / 1.016 GB, free: 4.352 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.486e-05/0.9298, allocations: 15.48 kB / 1.016 GB, free: 4.34 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.9298, allocations: 3.906 kB / 1.016 GB, free: 4.336 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001194/0.93, allocations: 79.62 kB / 1.016 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.93, allocations: 8.188 kB / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.93, allocations: 0 / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.93, allocations: 3.938 kB / 1.016 GB, free: 4.25 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.9301, allocations: 19.98 kB / 1.016 GB, free: 4.23 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.9302, allocations: 4.375 kB / 1.016 GB, free: 4.227 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.599e-05/0.9302, allocations: 19.92 kB / 1.016 GB, free: 4.207 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.9303, allocations: 4 kB / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.147e-05/0.9304, allocations: 108.2 kB / 1.016 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.178e-05/0.9304, allocations: 7.906 kB / 1.016 GB, free: 4.086 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001269/0.9305, allocations: 65.05 kB / 1.016 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.9305, allocations: 4 kB / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.9305, allocations: 0 / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.9305, allocations: 0 / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.9308, allocations: 300.6 kB / 1.016 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.9308, allocations: 3.938 kB / 1.016 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.69e-05/0.9309, allocations: 15.98 kB / 1.016 GB, free: 3.68 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.9309, allocations: 0 / 1.016 GB, free: 3.68 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.9309, allocations: 4 kB / 1.016 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.9309, allocations: 0 / 1.016 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.9309, allocations: 3.984 kB / 1.016 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001298/0.931, allocations: 160.5 kB / 1.017 GB, free: 3.512 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002099/0.9313, allocations: 0.5318 MB / 1.017 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.844e-05/0.9313, allocations: 85.02 kB / 1.017 GB, free: 2.871 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.9313, allocations: 4 kB / 1.017 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.9315, allocations: 11.98 kB / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.759e-05/0.9315, allocations: 0 / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.9315, allocations: 4 kB / 1.017 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.801e-05/0.9316, allocations: 90.8 kB / 1.017 GB, free: 2.766 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000761/0.9323, allocations: 12 kB / 1.017 GB, free: 2.754 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: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001265/0.9325, allocations: 99.23 kB / 1.017 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001022/0.9326, allocations: 37.19 kB / 1.017 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.9326, allocations: 4 kB / 1.017 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.36e-05/0.9326, allocations: 19.06 kB / 1.017 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001926/0.9328, allocations: 7.984 kB / 1.017 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000246/0.9331, allocations: 83.02 kB / 1.017 GB, free: 2.5 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002495/0.9333, allocations: 0.6997 MB / 1.018 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of SimCode: time 2.71e-07/0.9333, allocations: 0 / 1.018 GB, free: 1.773 MB / 0.6355 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)