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.TriggeredMax.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.TriggeredMax,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.313/1.313, allocations: 285.5 MB / 292.8 MB, free: 10.45 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.0009335/0.0009336, allocations: 185.3 kB / 361.1 MB, free: 7.094 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.9936/0.9936, allocations: 205.1 MB / 0.6195 GB, free: 10.29 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.0007669/0.000767, allocations: 90.81 kB / 0.7325 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1733/0.1741, allocations: 121.5 MB / 0.8512 GB, free: 2.867 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4041/0.5782, allocations: 115.3 MB / 0.9638 GB, free: 78.34 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1301/0.7084, allocations: 137.7 MB / 1.098 GB, free: 2.312 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001703/0.7086, allocations: 68.53 kB / 1.098 GB, free: 2.246 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.007421/0.7161, allocations: 2.661 MB / 1.101 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.7161, allocations: 8.5 kB / 1.101 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.471e-05/0.7162, allocations: 8.406 kB / 1.101 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.7163, allocations: 175.5 kB / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.7163, allocations: 7.984 kB / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.7163, allocations: 8 kB / 1.101 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.035e-05/0.7164, allocations: 16 kB / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.823e-05/0.7165, allocations: 45.69 kB / 1.101 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-06/0.7165, allocations: 3.906 kB / 1.101 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.7165, allocations: 0.5156 kB / 1.101 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.7165, allocations: 7.938 kB / 1.101 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003856/0.7169, allocations: 305.2 kB / 1.101 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.106e-05/0.717, allocations: 31.33 kB / 1.101 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.953e-05/0.717, allocations: 16.84 kB / 1.101 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.717, allocations: 4 kB / 1.101 GB, free: 14.9 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.168e-05/0.7171, allocations: 59.41 kB / 1.102 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.7171, allocations: 0 / 1.102 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0001638/0.7173, allocations: 81.59 kB / 1.102 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.458e-05/0.7173, allocations: 59.39 kB / 1.102 GB, free: 14.68 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.839e-05/0.7174, allocations: 98.22 kB / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.7174, allocations: 29.7 kB / 1.102 GB, free: 14.54 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.28e-05/0.7175, allocations: 96.22 kB / 1.102 GB, free: 14.44 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.7175, allocations: 11.75 kB / 1.102 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.351e-05/0.7175, allocations: 4 kB / 1.102 GB, free: 14.42 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.643e-05/0.7176, allocations: 318.8 kB / 1.102 GB, free: 14.1 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.817e-05/0.7177, allocations: 36 kB / 1.102 GB, free: 14.07 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.793e-05/0.7177, allocations: 59.42 kB / 1.102 GB, free: 14 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000184/0.7179, allocations: 45.42 kB / 1.102 GB, free: 13.96 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.7179, allocations: 3.938 kB / 1.102 GB, free: 13.95 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003123/0.7183, allocations: 142.2 kB / 1.102 GB, free: 13.81 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.7183, allocations: 8 kB / 1.102 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.7183, allocations: 0 / 1.102 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.407e-06/0.7183, allocations: 0 / 1.102 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.863e-05/0.7184, allocations: 15.98 kB / 1.103 GB, free: 13.79 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.7184, allocations: 4 kB / 1.103 GB, free: 13.78 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.7187, allocations: 57.8 kB / 1.103 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.7187, allocations: 4 kB / 1.103 GB, free: 13.72 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 6.461e-05/0.7188, allocations: 109.7 kB / 1.103 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.524e-05/0.7188, allocations: 7.906 kB / 1.103 GB, free: 13.6 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001535/0.7189, allocations: 77.98 kB / 1.103 GB, free: 13.52 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.7189, allocations: 0.5156 kB / 1.103 GB, free: 13.52 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.719, allocations: 0 / 1.103 GB, free: 13.52 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.719, allocations: 11.92 kB / 1.103 GB, free: 13.51 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.7192, allocations: 299.1 kB / 1.103 GB, free: 13.17 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.7192, allocations: 0 / 1.103 GB, free: 13.17 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.414e-05/0.7193, allocations: 15.92 kB / 1.103 GB, free: 13.16 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.7193, allocations: 0.5156 kB / 1.103 GB, free: 13.16 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.7193, allocations: 4 kB / 1.103 GB, free: 13.15 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.7193, allocations: 0 / 1.103 GB, free: 13.15 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.7193, allocations: 4 kB / 1.103 GB, free: 13.15 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001268/0.7194, allocations: 172.4 kB / 1.103 GB, free: 12.97 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001977/0.7196, allocations: 0.5388 MB / 1.104 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.991e-05/0.7197, allocations: 81.05 kB / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.7197, allocations: 4 kB / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.827e-05/0.7198, allocations: 11.98 kB / 1.104 GB, free: 12.3 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.703e-05/0.7198, allocations: 12.55 kB / 1.104 GB, free: 12.29 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.7199, allocations: 0 / 1.104 GB, free: 12.29 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.305e-05/0.7199, allocations: 87.28 kB / 1.104 GB, free: 12.2 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0007783/0.7207, allocations: 36.48 kB / 1.104 GB, free: 12.16 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.0001334/0.7208, allocations: 107 kB / 1.104 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001754/0.721, allocations: 102.8 kB / 1.104 GB, free: 11.94 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.721, allocations: 0 / 1.104 GB, free: 11.94 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.27e-05/0.7211, allocations: 20 kB / 1.104 GB, free: 11.92 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001871/0.7213, allocations: 7.984 kB / 1.104 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000242/0.7215, allocations: 104.5 kB / 1.104 GB, free: 11.79 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002089/0.7217, allocations: 0.7037 MB / 1.105 GB, free: 11.06 MB / 0.7136 GB Notification: Performance of SimCode: time 2.2e-07/0.7217, allocations: 0 / 1.105 GB, free: 11.06 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)