Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.405/1.405, allocations: 289.8 MB / 297.1 MB, free: 6.695 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.001041/0.001041, allocations: 181.2 kB / 366.3 MB, free: 2.016 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.116/1.116, allocations: 205.1 MB / 0.6256 GB, free: 5.871 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.0008031/0.0008031, allocations: 95.92 kB / 0.7396 GB, free: 39.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1951/0.1959, allocations: 122.4 MB / 0.8591 GB, free: 13.31 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4541/0.6501, allocations: 116.3 MB / 0.9727 GB, free: 68.71 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1409/0.791, allocations: 138.1 MB / 1.108 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001754/0.7912, allocations: 72.59 kB / 1.108 GB, free: 10.34 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.003035/0.7943, allocations: 1.079 MB / 1.109 GB, free: 9.227 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.7943, allocations: 8 kB / 1.109 GB, free: 9.219 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.367e-05/0.7943, allocations: 11.98 kB / 1.109 GB, free: 9.207 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.723e-05/0.7944, allocations: 167 kB / 1.109 GB, free: 9.004 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.7945, allocations: 0 / 1.109 GB, free: 9.004 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.7945, allocations: 4 kB / 1.109 GB, free: 9 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.45e-05/0.7945, allocations: 19.94 kB / 1.109 GB, free: 8.98 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.004e-05/0.7946, allocations: 42.91 kB / 1.109 GB, free: 8.934 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.7946, allocations: 0 / 1.109 GB, free: 8.934 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.7946, allocations: 0 / 1.109 GB, free: 8.934 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.7947, allocations: 0 / 1.109 GB, free: 8.934 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002909/0.795, allocations: 249.4 kB / 1.109 GB, free: 8.652 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.993e-05/0.795, allocations: 26.58 kB / 1.109 GB, free: 8.617 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.049e-05/0.795, allocations: 20.8 kB / 1.109 GB, free: 8.594 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.7951, allocations: 0 / 1.109 GB, free: 8.594 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.925e-05/0.7951, allocations: 55.41 kB / 1.109 GB, free: 8.527 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.7951, allocations: 4 kB / 1.109 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5): time 0.0001282/0.7953, allocations: 53.69 kB / 1.109 GB, free: 8.465 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.7953, allocations: 55.39 kB / 1.109 GB, free: 8.398 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.95e-05/0.7954, allocations: 101 kB / 1.109 GB, free: 8.293 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.7954, allocations: 26.64 kB / 1.109 GB, free: 8.262 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.246e-05/0.7954, allocations: 91.98 kB / 1.11 GB, free: 8.168 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/0.7955, allocations: 11.84 kB / 1.11 GB, free: 8.156 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-06/0.7955, allocations: 0 / 1.11 GB, free: 8.156 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.232e-05/0.7956, allocations: 322.7 kB / 1.11 GB, free: 7.832 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.546e-05/0.7956, allocations: 16 kB / 1.11 GB, free: 7.816 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.856e-05/0.7956, allocations: 40.08 kB / 1.11 GB, free: 7.77 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.7958, allocations: 23.97 kB / 1.11 GB, free: 7.746 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.7958, allocations: 0 / 1.11 GB, free: 7.746 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001823/0.796, allocations: 77.61 kB / 1.11 GB, free: 7.664 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.796, allocations: 5.594 kB / 1.11 GB, free: 7.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.796, allocations: 7.984 kB / 1.11 GB, free: 7.652 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.796, allocations: 0 / 1.11 GB, free: 7.652 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.7961, allocations: 19.89 kB / 1.11 GB, free: 7.633 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.7961, allocations: 4 kB / 1.11 GB, free: 7.629 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.251e-05/0.7962, allocations: 12.12 kB / 1.11 GB, free: 7.617 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.896e-06/0.7962, allocations: 0 / 1.11 GB, free: 7.617 MB / 0.7136 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 6.281e-05/0.7963, allocations: 112.9 kB / 1.11 GB, free: 7.5 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.353e-05/0.7963, allocations: 7.891 kB / 1.11 GB, free: 7.492 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.7964, allocations: 65.81 kB / 1.11 GB, free: 7.414 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.7965, allocations: 0 / 1.11 GB, free: 7.414 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.7965, allocations: 8 kB / 1.11 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.7965, allocations: 0 / 1.11 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.7967, allocations: 284.5 kB / 1.111 GB, free: 7.086 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.7967, allocations: 0 / 1.111 GB, free: 7.086 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.687e-05/0.7968, allocations: 15.98 kB / 1.111 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.7968, allocations: 0 / 1.111 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.7968, allocations: 4 kB / 1.111 GB, free: 7.066 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.7968, allocations: 4 kB / 1.111 GB, free: 7.062 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.7968, allocations: 0 / 1.111 GB, free: 7.062 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001028/0.7969, allocations: 151.4 kB / 1.111 GB, free: 6.898 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000213/0.7971, allocations: 0.5194 MB / 1.111 GB, free: 6.359 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.196e-05/0.7972, allocations: 85.02 kB / 1.111 GB, free: 6.258 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.7972, allocations: 4 kB / 1.111 GB, free: 6.254 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.459e-05/0.7973, allocations: 7.984 kB / 1.111 GB, free: 6.246 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.206e-05/0.7973, allocations: 7.984 kB / 1.111 GB, free: 6.238 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.7974, allocations: 0 / 1.111 GB, free: 6.238 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.799e-05/0.7974, allocations: 87.28 kB / 1.111 GB, free: 6.152 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000761/0.7982, allocations: 23.78 kB / 1.111 GB, free: 6.129 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.0001557/0.7983, allocations: 112.7 kB / 1.112 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.414e-05/0.7984, allocations: 32.19 kB / 1.112 GB, free: 5.98 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.273e-06/0.7984, allocations: 0 / 1.112 GB, free: 5.98 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.36e-05/0.7985, allocations: 16 kB / 1.112 GB, free: 5.965 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001655/0.7986, allocations: 6.75 kB / 1.112 GB, free: 5.961 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002262/0.7989, allocations: 79.83 kB / 1.112 GB, free: 5.859 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002732/0.7992, allocations: 0.6999 MB / 1.112 GB, free: 5.133 MB / 0.7136 GB Notification: Performance of SimCode: time 2.5e-07/0.7992, allocations: 0 / 1.112 GB, free: 5.133 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)