Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.133/2.133, allocations: 284.8 MB / 292.1 MB, free: 10.78 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.00156/0.00156, allocations: 181.2 kB / 360.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.679/1.679, allocations: 205.1 MB / 0.6187 GB, free: 13.21 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.001186/0.001186, allocations: 87.94 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2497/0.2509, allocations: 121.4 MB / 0.8502 GB, free: 3.918 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5582/0.8092, allocations: 115.2 MB / 0.9628 GB, free: 78.77 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2051/1.014, allocations: 137 MB / 1.097 GB, free: 3.918 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/1.015, allocations: 72.52 kB / 1.097 GB, free: 3.848 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.005003/1.02, allocations: 1.086 MB / 1.098 GB, free: 2.758 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/1.02, allocations: 12.44 kB / 1.098 GB, free: 2.746 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.386e-05/1.02, allocations: 4 kB / 1.098 GB, free: 2.742 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001916/1.02, allocations: 171.4 kB / 1.098 GB, free: 2.535 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/1.02, allocations: 4.688 kB / 1.098 GB, free: 2.531 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/1.02, allocations: 3.844 kB / 1.098 GB, free: 2.531 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001039/1.02, allocations: 17.19 kB / 1.098 GB, free: 2.516 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/1.02, allocations: 41.69 kB / 1.098 GB, free: 2.469 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/1.02, allocations: 4 kB / 1.098 GB, free: 2.465 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/1.02, allocations: 0.5312 kB / 1.098 GB, free: 2.465 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/1.02, allocations: 0.5 kB / 1.098 GB, free: 2.465 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000404/1.021, allocations: 247.3 kB / 1.098 GB, free: 2.188 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.457e-05/1.021, allocations: 31.33 kB / 1.098 GB, free: 2.148 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.502e-05/1.021, allocations: 13.61 kB / 1.098 GB, free: 2.133 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/1.021, allocations: 0.5 kB / 1.098 GB, free: 2.133 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001088/1.021, allocations: 66.61 kB / 1.098 GB, free: 2.059 MB / 0.698 GB Notification: Performance of pre-optimization done (n=5): time 1.823e-06/1.021, allocations: 0.5938 kB / 1.098 GB, free: 2.059 MB / 0.698 GB Notification: Performance of matching and sorting (n=5): time 0.0001937/1.021, allocations: 54.22 kB / 1.098 GB, free: 2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/1.021, allocations: 56.03 kB / 1.098 GB, free: 1.934 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.306e-05/1.021, allocations: 106 kB / 1.098 GB, free: 1.824 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/1.022, allocations: 25.7 kB / 1.098 GB, free: 1.793 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.884e-05/1.022, allocations: 84.77 kB / 1.099 GB, free: 1.707 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.697e-05/1.022, allocations: 11.84 kB / 1.099 GB, free: 1.695 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-06/1.022, allocations: 4.625 kB / 1.099 GB, free: 1.691 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001392/1.022, allocations: 323.4 kB / 1.099 GB, free: 1.367 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.336e-05/1.022, allocations: 9.125 kB / 1.099 GB, free: 1.359 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.808e-05/1.022, allocations: 35.09 kB / 1.099 GB, free: 1.316 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/1.022, allocations: 25.72 kB / 1.099 GB, free: 1.293 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/1.022, allocations: 4.594 kB / 1.099 GB, free: 1.289 MB / 0.698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003033/1.022, allocations: 74.73 kB / 1.099 GB, free: 1.211 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/1.022, allocations: 8.125 kB / 1.099 GB, free: 1.203 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/1.023, allocations: 0 / 1.099 GB, free: 1.203 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/1.023, allocations: 4 kB / 1.099 GB, free: 1.199 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/1.023, allocations: 23.83 kB / 1.099 GB, free: 1.176 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/1.023, allocations: 3.984 kB / 1.099 GB, free: 1.172 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/1.023, allocations: 12 kB / 1.099 GB, free: 1.16 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/1.023, allocations: 4 kB / 1.099 GB, free: 1.156 MB / 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 9.191e-05/1.023, allocations: 105.7 kB / 1.099 GB, free: 1.047 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.933e-05/1.023, allocations: 7.906 kB / 1.099 GB, free: 1.039 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000184/1.023, allocations: 68.14 kB / 1.099 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/1.023, allocations: 0 / 1.099 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/1.023, allocations: 3.75 kB / 1.099 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/1.023, allocations: 0 / 1.099 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003743/1.024, allocations: 287.1 kB / 1.1 GB, free: 0.6445 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/1.024, allocations: 4 kB / 1.1 GB, free: 0.6406 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001222/1.024, allocations: 13.67 kB / 1.1 GB, free: 0.6289 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/1.024, allocations: 0 / 1.1 GB, free: 0.6289 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/1.024, allocations: 0 / 1.1 GB, free: 0.6289 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/1.024, allocations: 0 / 1.1 GB, free: 0.6289 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/1.024, allocations: 3.938 kB / 1.1 GB, free: 0.625 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001735/1.024, allocations: 155.5 kB / 1.1 GB, free: 468 kB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003509/1.024, allocations: 0.5213 MB / 1.1 GB, free: 15.92 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.933e-05/1.024, allocations: 81.53 kB / 1.1 GB, free: 15.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/1.025, allocations: 0 / 1.1 GB, free: 15.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/1.025, allocations: 15.98 kB / 1.1 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/1.025, allocations: 4 kB / 1.1 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/1.025, allocations: 3.984 kB / 1.1 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.502e-05/1.025, allocations: 83.28 kB / 1.1 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001148/1.026, allocations: 27.78 kB / 1.1 GB, free: 15.69 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.0002605/1.026, allocations: 107.2 kB / 1.1 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001512/1.026, allocations: 32 kB / 1.101 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/1.026, allocations: 4 kB / 1.101 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.979e-05/1.027, allocations: 11.94 kB / 1.101 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/1.027, allocations: 9.766 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000337/1.027, allocations: 76.58 kB / 1.101 GB, free: 15.42 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003625/1.028, allocations: 0.6958 MB / 1.101 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of SimCode: time 1.022e-06/1.028, allocations: 256 / 1.101 GB, free: 14.7 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)