Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset",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.394/1.394, allocations: 289.8 MB / 297.1 MB, free: 6.617 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.001075/0.001075, allocations: 185.2 kB / 366.3 MB, free: 1.965 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.113/1.113, allocations: 205.1 MB / 0.6256 GB, free: 5.816 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.0007615/0.0007615, allocations: 90.77 kB / 0.7395 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2047/0.2055, allocations: 122.4 MB / 0.8591 GB, free: 13.26 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4791/0.6846, allocations: 116.3 MB / 0.9726 GB, free: 68.76 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1603/0.845, allocations: 145 MB / 1.114 GB, free: 3.523 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.8452, allocations: 83.88 kB / 1.114 GB, free: 3.441 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.03301/0.8783, allocations: 13.06 MB / 1.127 GB, free: 6.32 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.8783, allocations: 8 kB / 1.127 GB, free: 6.312 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002543/0.8786, allocations: 91.05 kB / 1.127 GB, free: 6.223 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008974/0.8795, allocations: 0.5289 MB / 1.128 GB, free: 5.648 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.8795, allocations: 20 kB / 1.128 GB, free: 5.629 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.646e-05/0.8796, allocations: 39.98 kB / 1.128 GB, free: 5.59 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008149/0.8805, allocations: 394.8 kB / 1.128 GB, free: 5.207 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009054/0.8814, allocations: 0.5177 MB / 1.129 GB, free: 4.656 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.8814, allocations: 9 kB / 1.129 GB, free: 4.648 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.199e-05/0.8815, allocations: 3.984 kB / 1.129 GB, free: 4.645 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.8815, allocations: 16 kB / 1.129 GB, free: 4.629 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003086/0.8846, allocations: 1.991 MB / 1.131 GB, free: 2.586 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005185/0.8851, allocations: 306.6 kB / 1.131 GB, free: 2.281 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003026/0.8854, allocations: 202.6 kB / 1.131 GB, free: 2.078 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.247e-05/0.8855, allocations: 4.438 kB / 1.131 GB, free: 2.074 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003479/0.8858, allocations: 232.5 kB / 1.131 GB, free: 1.832 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=50): time 1.984e-06/0.8858, allocations: 0 / 1.131 GB, free: 1.832 MB / 0.7292 GB Notification: Performance of matching and sorting (n=50): time 0.0006366/0.8865, allocations: 386.6 kB / 1.132 GB, free: 1.449 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.8866, allocations: 172.4 kB / 1.132 GB, free: 1.246 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003764/0.8869, allocations: 345.8 kB / 1.132 GB, free: 0.9062 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.887, allocations: 25.7 kB / 1.132 GB, free: 0.875 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.8872, allocations: 256.3 kB / 1.132 GB, free: 0.6211 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.8873, allocations: 165.5 kB / 1.133 GB, free: 468 kB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.26e-05/0.8873, allocations: 0 / 1.133 GB, free: 468 kB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.8875, allocations: 366.8 kB / 1.133 GB, free: 92 kB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003046/0.8878, allocations: 145.4 kB / 1.133 GB, free: 15.95 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003261/0.8881, allocations: 251 kB / 1.133 GB, free: 15.67 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002872/0.8884, allocations: 169.5 kB / 1.133 GB, free: 15.51 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.8884, allocations: 0 / 1.133 GB, free: 15.51 MB / 0.7448 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007524/0.8892, allocations: 459.8 kB / 1.134 GB, free: 15.05 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.8892, allocations: 8 kB / 1.134 GB, free: 15.04 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.8892, allocations: 4.188 kB / 1.134 GB, free: 15.04 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.181e-05/0.8893, allocations: 4 kB / 1.134 GB, free: 15.04 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005593/0.8898, allocations: 127.7 kB / 1.134 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.6e-05/0.8899, allocations: 9.547 kB / 1.134 GB, free: 14.9 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004841/0.8904, allocations: 71.66 kB / 1.134 GB, free: 14.83 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.938e-05/0.8904, allocations: 23.92 kB / 1.134 GB, free: 14.81 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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.0001466/0.8906, allocations: 121 kB / 1.134 GB, free: 14.69 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.167e-05/0.8907, allocations: 59.25 kB / 1.134 GB, free: 14.63 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001287/0.8908, allocations: 57.19 kB / 1.134 GB, free: 14.57 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.8908, allocations: 12 kB / 1.134 GB, free: 14.56 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.8908, allocations: 0 / 1.134 GB, free: 14.56 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.8908, allocations: 0 / 1.134 GB, free: 14.56 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.8924, allocations: 1.103 MB / 1.135 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.8924, allocations: 5.594 kB / 1.135 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005708/0.893, allocations: 115.9 kB / 1.136 GB, free: 13.3 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/0.893, allocations: 0 / 1.136 GB, free: 13.3 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.34e-05/0.893, allocations: 8 kB / 1.136 GB, free: 13.29 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.893, allocations: 0 / 1.136 GB, free: 13.29 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.8931, allocations: 0 / 1.136 GB, free: 13.29 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009685/0.894, allocations: 0.7166 MB / 1.136 GB, free: 12.55 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001316/0.8954, allocations: 1.302 MB / 1.138 GB, free: 11.24 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000212/0.8956, allocations: 180.3 kB / 1.138 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.336e-05/0.8957, allocations: 4 kB / 1.138 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004059/0.8961, allocations: 51.95 kB / 1.138 GB, free: 10.99 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.375e-05/0.8962, allocations: 32.38 kB / 1.138 GB, free: 10.96 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.728e-05/0.8962, allocations: 16 kB / 1.138 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0002771/0.8965, allocations: 263.2 kB / 1.138 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.001051/0.8976, allocations: 143.4 kB / 1.138 GB, free: 10.54 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * 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.0001584/0.8978, allocations: 114.8 kB / 1.138 GB, free: 10.42 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0006333/0.8984, allocations: 417.2 kB / 1.139 GB, free: 10 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.8984, allocations: 0 / 1.139 GB, free: 10 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003203/0.8987, allocations: 203.1 kB / 1.139 GB, free: 9.805 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000654/0.8994, allocations: 108.4 kB / 1.139 GB, free: 9.703 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002793/0.9022, allocations: 1.267 MB / 1.14 GB, free: 8.402 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007089/0.9029, allocations: 0.9559 MB / 1.141 GB, free: 7.418 MB / 0.7448 GB Notification: Performance of SimCode: time 2.81e-07/0.9029, allocations: 0.8438 kB / 1.141 GB, free: 7.418 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)