Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="IBPSA_latest_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/Complex 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 192.4 kB / 7.806 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4858/0.4858, allocations: 90.85 MB / 99.07 MB, free: 14.91 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 221.4 MB / 342.8 MB, free: 5.094 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 103.1 kB / 415.5 MB, free: 9.789 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1738/0.1749, allocations: 78.44 MB / 493.9 MB, free: 11.44 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.5385, allocations: 72.3 MB / 0.553 GB, free: 44.74 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.135/0.6735, allocations: 108.7 MB / 0.6591 GB, free: 15.89 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.6739, allocations: 79.95 kB / 0.6592 GB, free: 15.81 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.05782/0.7318, allocations: 17.44 MB / 0.6762 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.7318, allocations: 12 kB / 0.6762 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.732, allocations: 98.86 kB / 0.6763 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.733, allocations: 0.5823 MB / 0.6769 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.7332, allocations: 80.39 kB / 0.677 GB, free: 13.47 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.757e-05/0.7332, allocations: 35.98 kB / 0.677 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006812/0.7339, allocations: 341.9 kB / 0.6773 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008465/0.7348, allocations: 0.5161 MB / 0.6778 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.7348, allocations: 0 / 0.6778 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.017e-05/0.7349, allocations: 0 / 0.6778 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.7349, allocations: 12 kB / 0.6779 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002951/0.7379, allocations: 2.093 MB / 0.6799 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008351/0.7387, allocations: 416.9 kB / 0.6803 GB, free: 9.941 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002722/0.739, allocations: 156.8 kB / 0.6805 GB, free: 9.785 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.892e-05/0.739, allocations: 8.719 kB / 0.6805 GB, free: 9.777 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004027/0.7395, allocations: 229.5 kB / 0.6807 GB, free: 9.539 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=45): time 2.164e-06/0.7395, allocations: 1.094 kB / 0.6807 GB, free: 9.539 MB / 0.4948 GB Notification: Performance of matching and sorting (n=45): time 0.0007633/0.7402, allocations: 385.4 kB / 0.681 GB, free: 9.156 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.923e-05/0.7403, allocations: 187.9 kB / 0.6812 GB, free: 8.93 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005645/0.7409, allocations: 479.7 kB / 0.6817 GB, free: 8.453 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.781e-05/0.741, allocations: 25.7 kB / 0.6817 GB, free: 8.422 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.7412, allocations: 252.6 kB / 0.6819 GB, free: 8.168 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.7413, allocations: 149.8 kB / 0.6821 GB, free: 8.02 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.499e-05/0.7413, allocations: 0 / 0.6821 GB, free: 8.02 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001669/0.7415, allocations: 382.7 kB / 0.6825 GB, free: 7.637 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/0.7418, allocations: 145.3 kB / 0.6826 GB, free: 7.496 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003504/0.7421, allocations: 267.3 kB / 0.6829 GB, free: 7.188 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002741/0.7424, allocations: 160.7 kB / 0.683 GB, free: 7.035 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.7424, allocations: 4 kB / 0.683 GB, free: 7.031 MB / 0.4948 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007759/0.7432, allocations: 479.7 kB / 0.6835 GB, free: 6.555 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004083/0.7436, allocations: 0.9617 MB / 0.6844 GB, free: 5.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.7436, allocations: 4 kB / 0.6844 GB, free: 5.516 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.7437, allocations: 4 kB / 0.6844 GB, free: 5.512 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005519/0.7442, allocations: 127.8 kB / 0.6845 GB, free: 5.387 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.7442, allocations: 10.56 kB / 0.6845 GB, free: 5.379 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000492/0.7447, allocations: 71.5 kB / 0.6846 GB, free: 5.309 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.631e-05/0.7448, allocations: 27.98 kB / 0.6846 GB, free: 5.281 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.096e-06/0.7448, allocations: 5.875 kB / 0.6846 GB, free: 5.277 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006336/0.7455, allocations: 361.4 kB / 0.685 GB, free: 4.922 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.7455, allocations: 4 kB / 0.685 GB, free: 4.918 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.494e-06/0.7455, allocations: 7.984 kB / 0.685 GB, free: 4.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004946/0.746, allocations: 116.1 kB / 0.6851 GB, free: 4.797 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.746, allocations: 7.984 kB / 0.6851 GB, free: 4.789 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004447/0.7464, allocations: 63.7 kB / 0.6852 GB, free: 4.727 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.878e-05/0.7465, allocations: 16 kB / 0.6852 GB, free: 4.711 MB / 0.4948 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.0001532/0.7467, allocations: 133.5 kB / 0.6853 GB, free: 4.574 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.7468, allocations: 67.16 kB / 0.6854 GB, free: 4.508 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.7469, allocations: 70.53 kB / 0.6855 GB, free: 4.438 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.874e-06/0.7469, allocations: 8 kB / 0.6855 GB, free: 4.43 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.7469, allocations: 4.062 kB / 0.6855 GB, free: 4.426 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.747, allocations: 0 / 0.6855 GB, free: 4.426 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007114/0.7477, allocations: 0.5717 MB / 0.686 GB, free: 3.816 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.7477, allocations: 0 / 0.686 GB, free: 3.816 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005271/0.7482, allocations: 99.88 kB / 0.6861 GB, free: 3.719 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.7482, allocations: 0.8438 kB / 0.6861 GB, free: 3.719 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.719e-05/0.7483, allocations: 11.94 kB / 0.6861 GB, free: 3.707 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.7483, allocations: 4 kB / 0.6861 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.7483, allocations: 3.906 kB / 0.6861 GB, free: 3.699 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009698/0.7493, allocations: 0.6225 MB / 0.6867 GB, free: 3.059 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001381/0.7507, allocations: 1.209 MB / 0.6879 GB, free: 1.828 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002659/0.7509, allocations: 196.1 kB / 0.6881 GB, free: 1.617 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.673e-05/0.751, allocations: 8 kB / 0.6881 GB, free: 1.609 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005591/0.7516, allocations: 59.94 kB / 0.6882 GB, free: 1.551 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.693e-05/0.7517, allocations: 29.17 kB / 0.6882 GB, free: 1.523 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.855e-05/0.7518, allocations: 23.92 kB / 0.6882 GB, free: 1.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.000427/0.7522, allocations: 363.2 kB / 0.6886 GB, free: 1.148 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001796/0.754, allocations: 219 kB / 0.6888 GB, free: 0.9336 MB / 0.4948 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.0001774/0.7542, allocations: 112.3 kB / 0.6889 GB, free: 0.8125 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001112/0.7553, allocations: 0.6559 MB / 0.6895 GB, free: 148 kB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.7553, allocations: 0 / 0.6895 GB, free: 148 kB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003249/0.7557, allocations: 184.1 kB / 0.6897 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000862/0.7565, allocations: 154 kB / 0.6899 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/0.7586, allocations: 0.8895 MB / 0.6907 GB, free: 14.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007193/0.7593, allocations: 1 MB / 0.6917 GB, free: 13.88 MB / 0.5105 GB Notification: Performance of SimCode: time 6.81e-07/0.7593, allocations: 4 kB / 0.6917 GB, free: 13.87 MB / 0.5105 GB (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)