Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.798/1.798, allocations: 390.4 MB / 397.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009396/0.0009396, allocations: 186.2 kB / 490.8 MB, free: 1.918 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.15/1.15, allocations: 221.4 MB / 0.7863 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000898/0.000898, allocations: 101.5 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4335/0.4344, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.6245, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5488/1.173, allocations: 157.2 MB / 1.365 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/1.174, allocations: 78.7 kB / 1.365 GB, free: 17.18 MB / 0.823 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.04622/1.22, allocations: 17.43 MB / 1.382 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/1.22, allocations: 10.16 kB / 1.382 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004172/1.22, allocations: 100.2 kB / 1.382 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001274/1.222, allocations: 0.5847 MB / 1.383 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/1.222, allocations: 82.64 kB / 1.383 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/1.222, allocations: 31.62 kB / 1.383 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007548/1.223, allocations: 338.9 kB / 1.383 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008316/1.223, allocations: 0.5106 MB / 1.384 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/1.224, allocations: 0 / 1.384 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-05/1.224, allocations: 6.719 kB / 1.384 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/1.224, allocations: 12.03 kB / 1.384 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002889/1.226, allocations: 2.1 MB / 1.386 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008061/1.227, allocations: 418.8 kB / 1.386 GB, free: 27.96 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002658/1.228, allocations: 160 kB / 1.387 GB, free: 27.95 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.825e-05/1.228, allocations: 12.59 kB / 1.387 GB, free: 27.95 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000365/1.228, allocations: 220.1 kB / 1.387 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=45): time 2.214e-06/1.228, allocations: 0 / 1.387 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45): time 0.0007599/1.229, allocations: 389.1 kB / 1.387 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/1.229, allocations: 189.2 kB / 1.387 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006122/1.229, allocations: 473.2 kB / 1.388 GB, free: 27.39 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.907e-05/1.23, allocations: 28.44 kB / 1.388 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/1.23, allocations: 257 kB / 1.388 GB, free: 27.17 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.963e-05/1.23, allocations: 155.5 kB / 1.388 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.37e-05/1.23, allocations: 0 / 1.388 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001324/1.23, allocations: 383.9 kB / 1.389 GB, free: 26.71 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002456/1.23, allocations: 142.2 kB / 1.389 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000332/1.231, allocations: 268.4 kB / 1.389 GB, free: 26.56 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000296/1.231, allocations: 160.6 kB / 1.389 GB, free: 26.54 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/1.231, allocations: 1.188 kB / 1.389 GB, free: 26.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008428/1.232, allocations: 473.3 kB / 1.39 GB, free: 26.42 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002643/1.232, allocations: 0.9657 MB / 1.39 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/1.232, allocations: 3.125 kB / 1.39 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/1.232, allocations: 5.188 kB / 1.39 GB, free: 25.41 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005389/1.233, allocations: 125.5 kB / 1.391 GB, free: 25.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/1.233, allocations: 8.531 kB / 1.391 GB, free: 25.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005289/1.233, allocations: 77.89 kB / 1.391 GB, free: 25.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-05/1.233, allocations: 17.97 kB / 1.391 GB, free: 25.34 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.765e-06/1.233, allocations: 5.625 kB / 1.391 GB, free: 25.34 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006246/1.234, allocations: 371.8 kB / 1.391 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/1.234, allocations: 2.906 kB / 1.391 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.687e-06/1.234, allocations: 5.719 kB / 1.391 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004788/1.234, allocations: 120.4 kB / 1.391 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/1.234, allocations: 4.562 kB / 1.391 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000486/1.235, allocations: 59.91 kB / 1.391 GB, free: 25.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-05/1.235, allocations: 17.97 kB / 1.391 GB, free: 25.24 MB / 0.8386 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.0001494/1.235, allocations: 123.5 kB / 1.391 GB, free: 25.12 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/1.235, allocations: 72.7 kB / 1.391 GB, free: 25.08 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001329/1.235, allocations: 75.3 kB / 1.392 GB, free: 25.06 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/1.235, allocations: 8.188 kB / 1.392 GB, free: 25.05 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/1.235, allocations: 0 / 1.392 GB, free: 25.05 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/1.235, allocations: 3.984 kB / 1.392 GB, free: 25.05 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006109/1.236, allocations: 0.5741 MB / 1.392 GB, free: 24.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/1.236, allocations: 0 / 1.392 GB, free: 24.74 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005144/1.237, allocations: 101.9 kB / 1.392 GB, free: 24.72 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/1.237, allocations: 1.812 kB / 1.392 GB, free: 24.72 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/1.237, allocations: 6.438 kB / 1.392 GB, free: 24.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/1.237, allocations: 1 kB / 1.392 GB, free: 24.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/1.237, allocations: 13.09 kB / 1.392 GB, free: 24.71 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009446/1.238, allocations: 0.6199 MB / 1.393 GB, free: 24.56 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001347/1.239, allocations: 1.206 MB / 1.394 GB, free: 24.04 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002522/1.239, allocations: 200.3 kB / 1.394 GB, free: 23.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/1.239, allocations: 5.25 kB / 1.394 GB, free: 23.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005587/1.24, allocations: 65.16 kB / 1.394 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.584e-05/1.24, allocations: 31.05 kB / 1.394 GB, free: 23.85 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.793e-05/1.24, allocations: 18.2 kB / 1.394 GB, free: 23.84 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0004464/1.24, allocations: 362.3 kB / 1.395 GB, free: 23.72 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001929/1.242, allocations: 216 kB / 1.395 GB, free: 23.68 MB / 0.8386 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.0001697/1.243, allocations: 117.8 kB / 1.395 GB, free: 23.57 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001085/1.244, allocations: 0.6527 MB / 1.396 GB, free: 23.47 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/1.244, allocations: 0 / 1.396 GB, free: 23.47 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002909/1.244, allocations: 184.5 kB / 1.396 GB, free: 23.46 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008164/1.245, allocations: 152.8 kB / 1.396 GB, free: 23.42 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001995/1.247, allocations: 0.8835 MB / 1.397 GB, free: 23.05 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006644/1.247, allocations: 0.9957 MB / 1.398 GB, free: 22.22 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/1.247, allocations: 0 / 1.398 GB, free: 22.22 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)