Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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/BuildSysPro 3.5.0/package.mo): time 0.7333/0.7333, allocations: 127.4 MB / 134.6 MB, free: 4.062 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001161/0.00116, allocations: 181.3 kB / 164.4 MB, free: 6.867 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.899/1.899, allocations: 205.1 MB / 399.1 MB, free: 6.082 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 83.28 kB / 476.3 MB, free: 8.836 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3574/0.3586, allocations: 82.89 MB / 0.5461 GB, free: 42.65 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.5439, allocations: 76.74 MB / 0.621 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5458/1.09, allocations: 109.9 MB / 0.7283 GB, free: 2.426 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/1.09, allocations: 83.95 kB / 0.7284 GB, free: 2.344 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.05703/1.147, allocations: 18.28 MB / 0.7463 GB, free: 15.97 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/1.147, allocations: 8 kB / 0.7463 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004635/1.148, allocations: 98.78 kB / 0.7464 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/1.149, allocations: 0.6018 MB / 0.747 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/1.15, allocations: 84.7 kB / 0.747 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001494/1.15, allocations: 39.84 kB / 0.7471 GB, free: 15.09 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008353/1.151, allocations: 346.6 kB / 0.7474 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009927/1.152, allocations: 0.5096 MB / 0.7479 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/1.152, allocations: 3.938 kB / 0.7479 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.211e-05/1.152, allocations: 3.984 kB / 0.7479 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/1.152, allocations: 16 kB / 0.7479 GB, free: 14.17 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003909/1.156, allocations: 2.125 MB / 0.75 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009834/1.157, allocations: 421.7 kB / 0.7504 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003165/1.157, allocations: 160.8 kB / 0.7506 GB, free: 11.39 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 5.37e-05/1.157, allocations: 4 kB / 0.7506 GB, free: 11.39 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000418/1.158, allocations: 230.6 kB / 0.7508 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=45): time 3.898e-06/1.158, allocations: 0 / 0.7508 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of matching and sorting (n=45): time 0.0009098/1.158, allocations: 393 kB / 0.7512 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/1.159, allocations: 187.9 kB / 0.7513 GB, free: 10.53 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008583/1.159, allocations: 475.9 kB / 0.7518 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.391e-05/1.16, allocations: 25.81 kB / 0.7518 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002735/1.16, allocations: 264.4 kB / 0.7521 GB, free: 9.762 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002115/1.16, allocations: 153.8 kB / 0.7522 GB, free: 9.609 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.914e-05/1.16, allocations: 0 / 0.7522 GB, free: 9.609 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002559/1.16, allocations: 378.8 kB / 0.7526 GB, free: 9.23 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/1.161, allocations: 141.3 kB / 0.7527 GB, free: 9.094 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004531/1.161, allocations: 271.4 kB / 0.753 GB, free: 8.777 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/1.162, allocations: 156.7 kB / 0.7531 GB, free: 8.621 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/1.162, allocations: 8 kB / 0.7531 GB, free: 8.613 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009282/1.162, allocations: 482.1 kB / 0.7536 GB, free: 8.133 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004891/1.163, allocations: 0.9618 MB / 0.7545 GB, free: 7.098 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/1.163, allocations: 0 / 0.7545 GB, free: 7.098 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.814e-05/1.163, allocations: 12 kB / 0.7545 GB, free: 7.086 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006187/1.164, allocations: 123.8 kB / 0.7547 GB, free: 6.965 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/1.164, allocations: 8 kB / 0.7547 GB, free: 6.957 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006641/1.164, allocations: 79.48 kB / 0.7547 GB, free: 6.879 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.829e-05/1.164, allocations: 16 kB / 0.7548 GB, free: 6.863 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/1.164, allocations: 7.938 kB / 0.7548 GB, free: 6.855 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006984/1.165, allocations: 361.6 kB / 0.7551 GB, free: 6.504 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/1.165, allocations: 0 / 0.7551 GB, free: 6.504 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/1.165, allocations: 8 kB / 0.7551 GB, free: 6.496 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004598/1.166, allocations: 95.89 kB / 0.7552 GB, free: 6.402 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/1.166, allocations: 11.92 kB / 0.7552 GB, free: 6.391 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004841/1.166, allocations: 47.73 kB / 0.7553 GB, free: 6.344 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.43e-05/1.166, allocations: 20 kB / 0.7553 GB, free: 6.324 MB / 0.5105 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.0002011/1.166, allocations: 120 kB / 0.7554 GB, free: 6.203 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/1.167, allocations: 75.09 kB / 0.7555 GB, free: 6.129 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002074/1.167, allocations: 70.73 kB / 0.7555 GB, free: 6.059 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/1.167, allocations: 8 kB / 0.7555 GB, free: 6.051 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/1.167, allocations: 0 / 0.7555 GB, free: 6.051 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/1.167, allocations: 0 / 0.7555 GB, free: 6.051 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008541/1.168, allocations: 0.5872 MB / 0.7561 GB, free: 5.426 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/1.168, allocations: 0 / 0.7561 GB, free: 5.426 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005929/1.168, allocations: 103.9 kB / 0.7562 GB, free: 5.324 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/1.168, allocations: 4 kB / 0.7562 GB, free: 5.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.436e-05/1.168, allocations: 7.891 kB / 0.7562 GB, free: 5.312 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/1.168, allocations: 4 kB / 0.7562 GB, free: 5.309 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/1.168, allocations: 0 / 0.7562 GB, free: 5.309 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001093/1.169, allocations: 0.6146 MB / 0.7568 GB, free: 4.676 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001584/1.171, allocations: 1.214 MB / 0.758 GB, free: 3.438 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003685/1.171, allocations: 200 kB / 0.7582 GB, free: 3.223 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/1.172, allocations: 12.11 kB / 0.7582 GB, free: 3.211 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006027/1.172, allocations: 59.95 kB / 0.7583 GB, free: 3.152 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/1.172, allocations: 27.95 kB / 0.7583 GB, free: 3.125 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.232e-05/1.172, allocations: 15.98 kB / 0.7583 GB, free: 3.109 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0006371/1.173, allocations: 371.2 kB / 0.7587 GB, free: 2.75 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002052/1.175, allocations: 219.1 kB / 0.7589 GB, free: 2.535 MB / 0.5105 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.0002476/1.175, allocations: 115.2 kB / 0.759 GB, free: 2.414 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001298/1.177, allocations: 0.6472 MB / 0.7596 GB, free: 1.754 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.177, allocations: 0 / 0.7596 GB, free: 1.754 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003447/1.177, allocations: 180.2 kB / 0.7598 GB, free: 1.578 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/1.178, allocations: 179 kB / 0.76 GB, free: 1.41 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/1.181, allocations: 0.8967 MB / 0.7608 GB, free: 492 kB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009648/1.182, allocations: 1.004 MB / 0.7618 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of SimCode: time 6.61e-07/1.182, allocations: 0 / 0.7618 GB, free: 15.45 MB / 0.5261 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)