Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis",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.132/2.132, allocations: 284.8 MB / 292.1 MB, free: 10.75 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.001517/0.001517, allocations: 173.3 kB / 360.3 MB, free: 7.527 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.668/1.668, allocations: 205.1 MB / 0.6187 GB, free: 13.22 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.00123/0.00123, allocations: 87.66 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2442/0.2455, allocations: 121.4 MB / 0.8502 GB, free: 3.941 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5716/0.8171, allocations: 115.2 MB / 0.9627 GB, free: 78.49 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2207/1.038, allocations: 143.8 MB / 1.103 GB, free: 13.1 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/1.038, allocations: 75.97 kB / 1.103 GB, free: 13.02 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.02956/1.068, allocations: 7.181 MB / 1.11 GB, free: 5.871 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/1.068, allocations: 12.5 kB / 1.11 GB, free: 5.859 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/1.068, allocations: 51.44 kB / 1.11 GB, free: 5.809 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008578/1.069, allocations: 379.2 kB / 1.111 GB, free: 5.402 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/1.069, allocations: 12 kB / 1.111 GB, free: 5.391 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.021e-05/1.069, allocations: 16 kB / 1.111 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006653/1.07, allocations: 194.4 kB / 1.111 GB, free: 5.184 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007744/1.07, allocations: 297.1 kB / 1.111 GB, free: 4.863 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/1.07, allocations: 0 / 1.111 GB, free: 4.863 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.537e-05/1.071, allocations: 7.938 kB / 1.111 GB, free: 4.855 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/1.071, allocations: 4 kB / 1.111 GB, free: 4.852 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002504/1.073, allocations: 1.186 MB / 1.112 GB, free: 3.598 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000505/1.074, allocations: 146.1 kB / 1.112 GB, free: 3.449 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/1.074, allocations: 101.4 kB / 1.113 GB, free: 3.348 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.919e-05/1.074, allocations: 8.094 kB / 1.113 GB, free: 3.34 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/1.074, allocations: 34.75 kB / 1.113 GB, free: 3.297 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=22): time 2.504e-06/1.074, allocations: 0 / 1.113 GB, free: 3.297 MB / 0.7136 GB Notification: Performance of matching and sorting (n=22): time 0.0006389/1.075, allocations: 203.2 kB / 1.113 GB, free: 3.098 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.972e-05/1.075, allocations: 162.2 kB / 1.113 GB, free: 2.902 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004656/1.075, allocations: 262.1 kB / 1.113 GB, free: 2.641 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.882e-05/1.075, allocations: 29.7 kB / 1.113 GB, free: 2.605 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.000158/1.075, allocations: 176 kB / 1.113 GB, free: 2.43 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 9.388e-05/1.076, allocations: 74.84 kB / 1.113 GB, free: 2.355 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.797e-05/1.076, allocations: 4 kB / 1.113 GB, free: 2.352 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001682/1.076, allocations: 338.8 kB / 1.114 GB, free: 2.012 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/1.076, allocations: 64 kB / 1.114 GB, free: 1.949 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/1.076, allocations: 141.1 kB / 1.114 GB, free: 1.785 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/1.077, allocations: 87.77 kB / 1.114 GB, free: 1.699 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/1.077, allocations: 0 / 1.114 GB, free: 1.699 MB / 0.7136 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006355/1.077, allocations: 227.4 kB / 1.114 GB, free: 1.473 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/1.077, allocations: 4 kB / 1.114 GB, free: 1.469 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/1.077, allocations: 8.125 kB / 1.114 GB, free: 1.461 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/1.077, allocations: 1.594 kB / 1.114 GB, free: 1.461 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004981/1.078, allocations: 56.78 kB / 1.114 GB, free: 1.406 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/1.078, allocations: 4 kB / 1.114 GB, free: 1.402 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004457/1.078, allocations: 39.81 kB / 1.114 GB, free: 1.363 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.085e-05/1.078, allocations: 12 kB / 1.114 GB, free: 1.352 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 0.0001381/1.079, allocations: 116.6 kB / 1.115 GB, free: 1.23 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.16e-05/1.079, allocations: 31.62 kB / 1.115 GB, free: 1.199 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001422/1.079, allocations: 39.16 kB / 1.115 GB, free: 1.16 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/1.079, allocations: 4 kB / 1.115 GB, free: 1.156 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/1.079, allocations: 0 / 1.115 GB, free: 1.156 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/1.079, allocations: 3.984 kB / 1.115 GB, free: 1.152 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006401/1.079, allocations: 371.1 kB / 1.115 GB, free: 0.7539 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/1.08, allocations: 0 / 1.115 GB, free: 0.7539 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004732/1.08, allocations: 51.91 kB / 1.115 GB, free: 0.7031 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/1.08, allocations: 0 / 1.115 GB, free: 0.7031 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/1.08, allocations: 4 kB / 1.115 GB, free: 0.6992 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/1.08, allocations: 0 / 1.115 GB, free: 0.6992 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/1.08, allocations: 4.656 kB / 1.115 GB, free: 0.6953 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008755/1.081, allocations: 403.8 kB / 1.115 GB, free: 292 kB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001284/1.082, allocations: 0.8696 MB / 1.116 GB, free: 15.39 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002151/1.082, allocations: 141.9 kB / 1.116 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.589e-05/1.083, allocations: 4 kB / 1.116 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004779/1.083, allocations: 27.98 kB / 1.116 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.225e-05/1.083, allocations: 15.97 kB / 1.116 GB, free: 15.19 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/1.083, allocations: 7.75 kB / 1.116 GB, free: 15.19 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0003558/1.084, allocations: 208.6 kB / 1.117 GB, free: 14.98 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001306/1.085, allocations: 71.67 kB / 1.117 GB, free: 14.91 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 0.0001931/1.085, allocations: 99.25 kB / 1.117 GB, free: 14.8 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000574/1.086, allocations: 180 kB / 1.117 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/1.086, allocations: 4 kB / 1.117 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002505/1.086, allocations: 92.31 kB / 1.117 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007792/1.087, allocations: 72.72 kB / 1.117 GB, free: 14.47 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/1.089, allocations: 0.4947 MB / 1.118 GB, free: 13.96 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006668/1.089, allocations: 0.8297 MB / 1.118 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of SimCode: time 1.493e-06/1.089, allocations: 0 / 1.118 GB, free: 13.1 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)