Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.304/1.304, allocations: 285.5 MB / 292.8 MB, free: 10.44 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.0009336/0.0009336, allocations: 179.5 kB / 361.1 MB, free: 7.109 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9912/0.9912, allocations: 205.1 MB / 0.6195 GB, free: 10.31 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007498/0.0007498, allocations: 90.5 kB / 0.7325 GB, free: 44.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1692/0.17, allocations: 121.5 MB / 0.8512 GB, free: 2.883 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.5806, allocations: 115.3 MB / 0.9638 GB, free: 78.47 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.13/0.7106, allocations: 137.1 MB / 1.098 GB, free: 2.965 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001711/0.7108, allocations: 68.47 kB / 1.098 GB, free: 2.898 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.003039/0.7139, allocations: 1.096 MB / 1.099 GB, free: 1.793 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.7139, allocations: 8.5 kB / 1.099 GB, free: 1.785 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.799e-05/0.714, allocations: 0 / 1.099 GB, free: 1.785 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.875e-05/0.7141, allocations: 167.7 kB / 1.099 GB, free: 1.582 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.7141, allocations: 0 / 1.099 GB, free: 1.582 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.7141, allocations: 5.625 kB / 1.099 GB, free: 1.578 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.293e-05/0.7142, allocations: 15.98 kB / 1.099 GB, free: 1.562 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.875e-05/0.7143, allocations: 39.3 kB / 1.099 GB, free: 1.52 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.561e-06/0.7143, allocations: 1.062 kB / 1.099 GB, free: 1.52 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.7143, allocations: 3.984 kB / 1.099 GB, free: 1.516 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.526e-06/0.7143, allocations: 0 / 1.099 GB, free: 1.516 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002959/0.7146, allocations: 255.1 kB / 1.099 GB, free: 1.23 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.228e-05/0.7147, allocations: 31.17 kB / 1.099 GB, free: 1.191 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.808e-05/0.7147, allocations: 18.22 kB / 1.099 GB, free: 1.176 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.7147, allocations: 0.9844 kB / 1.099 GB, free: 1.176 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.523e-05/0.7148, allocations: 59.5 kB / 1.099 GB, free: 1.109 MB / 0.698 GB Notification: Performance of pre-optimization done (n=5): time 1.342e-06/0.7148, allocations: 0.5938 kB / 1.099 GB, free: 1.109 MB / 0.698 GB Notification: Performance of matching and sorting (n=5): time 0.0001309/0.7149, allocations: 57.62 kB / 1.099 GB, free: 1.047 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.715, allocations: 52.25 kB / 1.099 GB, free: 0.9844 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.663e-05/0.715, allocations: 103.7 kB / 1.1 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.7151, allocations: 25.7 kB / 1.1 GB, free: 0.8477 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.631e-05/0.7151, allocations: 92.56 kB / 1.1 GB, free: 0.7539 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.7151, allocations: 12.81 kB / 1.1 GB, free: 0.7422 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-06/0.7151, allocations: 0 / 1.1 GB, free: 0.7422 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.773e-05/0.7152, allocations: 319.3 kB / 1.1 GB, free: 432 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.385e-05/0.7153, allocations: 9.406 kB / 1.1 GB, free: 424 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.92e-05/0.7153, allocations: 42.64 kB / 1.1 GB, free: 372 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.7154, allocations: 21.8 kB / 1.1 GB, free: 352 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.7154, allocations: 0 / 1.1 GB, free: 352 kB / 0.698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001888/0.7156, allocations: 78.66 kB / 1.1 GB, free: 268 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.398e-06/0.7157, allocations: 8.5 kB / 1.1 GB, free: 260 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.7157, allocations: 1.75 kB / 1.1 GB, free: 260 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.965e-06/0.7157, allocations: 2.625 kB / 1.1 GB, free: 260 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.7158, allocations: 28.48 kB / 1.1 GB, free: 232 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.7158, allocations: 0 / 1.1 GB, free: 232 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.312e-05/0.7159, allocations: 14.02 kB / 1.1 GB, free: 220 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.7159, allocations: 4 kB / 1.1 GB, free: 216 kB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 5.637e-05/0.716, allocations: 101.7 kB / 1.1 GB, free: 108 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.206e-05/0.716, allocations: 8.5 kB / 1.1 GB, free: 100 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.7161, allocations: 65.03 kB / 1.1 GB, free: 32 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.7161, allocations: 0 / 1.1 GB, free: 32 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.7161, allocations: 4.484 kB / 1.1 GB, free: 28 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.7161, allocations: 4.125 kB / 1.1 GB, free: 24 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/0.7164, allocations: 279.1 kB / 1.101 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.7164, allocations: 0 / 1.101 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.581e-05/0.7165, allocations: 21.23 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.7165, allocations: 1.125 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.7165, allocations: 0 / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.7165, allocations: 0 / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.7165, allocations: 4 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001159/0.7166, allocations: 157.8 kB / 1.101 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002115/0.7168, allocations: 0.5194 MB / 1.101 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.76e-05/0.7169, allocations: 81.02 kB / 1.101 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.7169, allocations: 0 / 1.101 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.451e-05/0.717, allocations: 12 kB / 1.101 GB, free: 14.86 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/0.717, allocations: 12.58 kB / 1.101 GB, free: 14.85 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.717, allocations: 7.938 kB / 1.101 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.086e-05/0.7171, allocations: 79.28 kB / 1.102 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0007609/0.7178, allocations: 32.77 kB / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001217/0.718, allocations: 108.9 kB / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.65e-05/0.7181, allocations: 31.94 kB / 1.102 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.7181, allocations: 0 / 1.102 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.716e-05/0.7181, allocations: 15.98 kB / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001714/0.7183, allocations: 6.75 kB / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002058/0.7185, allocations: 76.34 kB / 1.102 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002409/0.7188, allocations: 0.7038 MB / 1.102 GB, free: 13.75 MB / 0.7136 GB Notification: Performance of SimCode: time 2.5e-07/0.7188, allocations: 0 / 1.102 GB, free: 13.75 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)