Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",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 9.1.1-maint.9.1.x/package.mo): time 1.77/1.77, allocations: 387.2 MB / 394.5 MB, free: 13.3 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009845/0.0009846, allocations: 182.3 kB / 487 MB, free: 0.7227 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.142/1.142, allocations: 221.3 MB / 0.7819 GB, free: 6.809 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008464/0.0008464, allocations: 93.94 kB / 0.9213 GB, free: 43.68 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2376/0.2385, allocations: 148.5 MB / 1.066 GB, free: 7.469 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5582/0.7967, allocations: 142.3 MB / 1.205 GB, free: 72.7 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1664/0.9631, allocations: 156.4 MB / 1.358 GB, free: 6.734 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.9634, allocations: 81.55 kB / 1.358 GB, free: 6.656 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.04424/1.008, allocations: 17.44 MB / 1.375 GB, free: 5.223 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/1.008, allocations: 12 kB / 1.375 GB, free: 5.211 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/1.008, allocations: 97.03 kB / 1.375 GB, free: 5.117 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008878/1.009, allocations: 0.5862 MB / 1.376 GB, free: 4.488 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/1.009, allocations: 82.14 kB / 1.376 GB, free: 4.395 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.885e-05/1.009, allocations: 36 kB / 1.376 GB, free: 4.359 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006141/1.01, allocations: 345.9 kB / 1.376 GB, free: 4.023 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007439/1.01, allocations: 0.5024 MB / 1.377 GB, free: 3.469 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/1.01, allocations: 3.938 kB / 1.377 GB, free: 3.465 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.672e-05/1.01, allocations: 0 / 1.377 GB, free: 3.465 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/1.01, allocations: 15.91 kB / 1.377 GB, free: 3.449 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/1.013, allocations: 2.102 MB / 1.379 GB, free: 1.277 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007469/1.014, allocations: 418.2 kB / 1.379 GB, free: 0.8555 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/1.014, allocations: 155 kB / 1.379 GB, free: 0.7031 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.506e-05/1.014, allocations: 12 kB / 1.379 GB, free: 0.6914 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000347/1.014, allocations: 221.9 kB / 1.38 GB, free: 472 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=45): time 1.613e-06/1.014, allocations: 0 / 1.38 GB, free: 472 kB / 0.8698 GB Notification: Performance of matching and sorting (n=45): time 0.0006134/1.015, allocations: 389 kB / 1.38 GB, free: 76 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.745e-05/1.015, allocations: 191.9 kB / 1.38 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004777/1.016, allocations: 479.8 kB / 1.381 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.242e-05/1.016, allocations: 25.7 kB / 1.381 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/1.016, allocations: 248.6 kB / 1.381 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/1.016, allocations: 149.7 kB / 1.381 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/1.016, allocations: 0 / 1.381 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001516/1.016, allocations: 387.8 kB / 1.381 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/1.016, allocations: 135.6 kB / 1.382 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003173/1.017, allocations: 271.4 kB / 1.382 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002587/1.017, allocations: 160.7 kB / 1.382 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.017, allocations: 4 kB / 1.382 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007512/1.018, allocations: 474.2 kB / 1.382 GB, free: 13.47 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003613/1.018, allocations: 0.9579 MB / 1.383 GB, free: 12.44 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/1.018, allocations: 4 kB / 1.383 GB, free: 12.44 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/1.018, allocations: 7.984 kB / 1.383 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005199/1.019, allocations: 123.8 kB / 1.383 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/1.019, allocations: 15.84 kB / 1.383 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004634/1.019, allocations: 77.7 kB / 1.384 GB, free: 12.22 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.852e-05/1.019, allocations: 23.94 kB / 1.384 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.6e-06/1.019, allocations: 4 kB / 1.384 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005894/1.02, allocations: 365.3 kB / 1.384 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/1.02, allocations: 4 kB / 1.384 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.202e-06/1.02, allocations: 4.312 kB / 1.384 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/1.02, allocations: 119.8 kB / 1.384 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/1.02, allocations: 7.906 kB / 1.384 GB, free: 11.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004217/1.021, allocations: 63.72 kB / 1.384 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.847e-05/1.021, allocations: 22.17 kB / 1.384 GB, free: 11.62 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001279/1.021, allocations: 120.8 kB / 1.384 GB, free: 11.49 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.867e-05/1.021, allocations: 75.06 kB / 1.384 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001297/1.021, allocations: 66.55 kB / 1.384 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/1.021, allocations: 4 kB / 1.384 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/1.021, allocations: 5.406 kB / 1.384 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/1.021, allocations: 3.984 kB / 1.384 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005832/1.022, allocations: 0.5678 MB / 1.385 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/1.022, allocations: 0 / 1.385 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005042/1.022, allocations: 105.1 kB / 1.385 GB, free: 10.63 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/1.022, allocations: 0 / 1.385 GB, free: 10.63 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.283e-05/1.022, allocations: 11.98 kB / 1.385 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/1.022, allocations: 0 / 1.385 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/1.022, allocations: 0 / 1.385 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000913/1.023, allocations: 0.6225 MB / 1.386 GB, free: 9.977 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001285/1.024, allocations: 1.206 MB / 1.387 GB, free: 8.75 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000232/1.025, allocations: 208 kB / 1.387 GB, free: 8.527 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.288e-05/1.025, allocations: 9.047 kB / 1.387 GB, free: 8.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005158/1.025, allocations: 55.95 kB / 1.387 GB, free: 8.465 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/1.025, allocations: 27.95 kB / 1.387 GB, free: 8.438 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.367e-05/1.025, allocations: 24.77 kB / 1.387 GB, free: 8.414 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0003478/1.026, allocations: 367.2 kB / 1.387 GB, free: 8.059 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001745/1.028, allocations: 215.1 kB / 1.388 GB, free: 7.848 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.0001742/1.028, allocations: 115.1 kB / 1.388 GB, free: 7.727 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0009131/1.029, allocations: 0.6518 MB / 1.388 GB, free: 7.062 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/1.029, allocations: 4.422 kB / 1.388 GB, free: 7.059 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.00026/1.029, allocations: 183.9 kB / 1.389 GB, free: 6.879 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008031/1.03, allocations: 162.1 kB / 1.389 GB, free: 6.734 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/1.032, allocations: 0.8769 MB / 1.39 GB, free: 5.832 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000615/1.032, allocations: 1.001 MB / 1.391 GB, free: 4.805 MB / 0.8855 GB Notification: Performance of SimCode: time 2.6e-07/1.032, allocations: 0 / 1.391 GB, free: 4.805 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)