Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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.TriggeredMax,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",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.151/2.151, allocations: 284.8 MB / 292.1 MB, free: 10.79 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.001603/0.001603, allocations: 185.2 kB / 360.3 MB, free: 7.562 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.663/1.663, allocations: 205.1 MB / 0.6187 GB, free: 13.24 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.001212/0.001211, allocations: 98.28 kB / 0.7317 GB, free: 45.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2549/0.2562, allocations: 121.4 MB / 0.8502 GB, free: 3.953 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5914/0.8476, allocations: 115.2 MB / 0.9628 GB, free: 78.55 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2118/1.06, allocations: 137.5 MB / 1.097 GB, free: 3.402 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/1.06, allocations: 72.52 kB / 1.097 GB, free: 3.332 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.01328/1.073, allocations: 2.666 MB / 1.1 GB, free: 0.6875 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/1.073, allocations: 8.5 kB / 1.1 GB, free: 0.6797 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.469e-05/1.073, allocations: 11.91 kB / 1.1 GB, free: 0.668 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/1.073, allocations: 167 kB / 1.1 GB, free: 476 kB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/1.073, allocations: 4.656 kB / 1.1 GB, free: 472 kB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.676e-05/1.073, allocations: 4 kB / 1.1 GB, free: 468 kB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001134/1.074, allocations: 23.98 kB / 1.1 GB, free: 444 kB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001259/1.074, allocations: 41.69 kB / 1.1 GB, free: 396 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/1.074, allocations: 7.844 kB / 1.1 GB, free: 388 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/1.074, allocations: 8.547 kB / 1.1 GB, free: 380 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/1.074, allocations: 0 / 1.1 GB, free: 380 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005892/1.074, allocations: 309 kB / 1.1 GB, free: 36 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001168/1.075, allocations: 30.62 kB / 1.1 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.635e-05/1.075, allocations: 19.36 kB / 1.1 GB, free: 15.97 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/1.075, allocations: 0 / 1.1 GB, free: 15.97 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001301/1.075, allocations: 67.38 kB / 1.1 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.914e-06/1.075, allocations: 4 kB / 1.1 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0003115/1.075, allocations: 73.59 kB / 1.1 GB, free: 15.82 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/1.075, allocations: 51.41 kB / 1.1 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.82e-05/1.075, allocations: 101 kB / 1.101 GB, free: 15.65 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/1.075, allocations: 29.7 kB / 1.101 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/1.075, allocations: 92.31 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.938e-05/1.075, allocations: 23.72 kB / 1.101 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.281e-05/1.076, allocations: 4 kB / 1.101 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001295/1.076, allocations: 314.8 kB / 1.101 GB, free: 15.17 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/1.076, allocations: 35.98 kB / 1.101 GB, free: 15.14 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/1.076, allocations: 59.38 kB / 1.101 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003372/1.076, allocations: 44.89 kB / 1.101 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/1.076, allocations: 0 / 1.101 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000563/1.077, allocations: 141.5 kB / 1.101 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/1.077, allocations: 8 kB / 1.101 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/1.077, allocations: 0 / 1.101 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/1.077, allocations: 0 / 1.101 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/1.077, allocations: 15.98 kB / 1.101 GB, free: 14.86 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/1.077, allocations: 4 kB / 1.101 GB, free: 14.85 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000425/1.078, allocations: 51.94 kB / 1.101 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.859e-05/1.078, allocations: 15.98 kB / 1.101 GB, free: 14.79 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: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001179/1.078, allocations: 112.7 kB / 1.102 GB, free: 14.67 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.397e-05/1.078, allocations: 5.281 kB / 1.102 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002608/1.078, allocations: 74.66 kB / 1.102 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/1.078, allocations: 1.125 kB / 1.102 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.078, allocations: 11.94 kB / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/1.078, allocations: 0 / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003699/1.079, allocations: 299 kB / 1.102 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/1.079, allocations: 0 / 1.102 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/1.079, allocations: 11.98 kB / 1.102 GB, free: 14.23 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/1.079, allocations: 4.516 kB / 1.102 GB, free: 14.22 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/1.079, allocations: 4 kB / 1.102 GB, free: 14.22 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/1.079, allocations: 9.859 kB / 1.102 GB, free: 14.21 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.079, allocations: 0 / 1.102 GB, free: 14.21 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000224/1.079, allocations: 167.2 kB / 1.102 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003741/1.079, allocations: 0.5426 MB / 1.103 GB, free: 13.47 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.965e-05/1.079, allocations: 79.45 kB / 1.103 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/1.08, allocations: 8 kB / 1.103 GB, free: 13.37 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/1.08, allocations: 7.984 kB / 1.103 GB, free: 13.36 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.343e-05/1.08, allocations: 16.59 kB / 1.103 GB, free: 13.35 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/1.08, allocations: 0 / 1.103 GB, free: 13.35 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.403e-05/1.08, allocations: 87.28 kB / 1.103 GB, free: 13.26 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001266/1.081, allocations: 27.94 kB / 1.103 GB, free: 13.23 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0002075/1.081, allocations: 107.2 kB / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003279/1.082, allocations: 101.6 kB / 1.103 GB, free: 13.01 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.082, allocations: 0 / 1.103 GB, free: 13.01 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.992e-05/1.082, allocations: 20 kB / 1.103 GB, free: 12.99 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/1.082, allocations: 18.31 kB / 1.103 GB, free: 12.98 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003806/1.083, allocations: 87.77 kB / 1.103 GB, free: 12.87 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000364/1.083, allocations: 0.7075 MB / 1.104 GB, free: 12.14 MB / 0.7136 GB Notification: Performance of SimCode: time 9.11e-07/1.083, allocations: 0 / 1.104 GB, free: 12.14 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)