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: translateModel(IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID") translateModel(IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID") [: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.001112/0.001112, allocations: 183.4 kB / 7.803 MB, free: 128 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4468/0.4468, allocations: 90.85 MB / 99.07 MB, free: 3.301 MB / 78.07 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.199/1.199, allocations: 221.4 MB / 342.7 MB, free: 10.19 MB / 286.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009386/0.0009386, allocations: 100.4 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 5.57e-06/5.58e-06, allocations: 0 / 493.9 MB, free: 12.38 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.343, allocations: 72.29 MB / 0.5529 GB, free: 74.18 MB / 446.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1166/0.4597, allocations: 108.7 MB / 0.659 GB, free: 5.359 MB / 478.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.46, allocations: 76.67 kB / 0.6591 GB, free: 5.285 MB / 478.1 MB Notification: Performance of FrontEnd: time 0.04701/0.507, allocations: 16.47 MB / 0.6752 GB, free: 4.883 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.796e-05/0.5071, allocations: 12 kB / 0.6752 GB, free: 4.871 MB / 494.1 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.002194/0.5093, allocations: 0.9547 MB / 0.6761 GB, free: 3.863 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.5094, allocations: 12.03 kB / 0.6762 GB, free: 3.852 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003613/0.5098, allocations: 95.62 kB / 0.6762 GB, free: 3.758 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.511, allocations: 0.5862 MB / 0.6768 GB, free: 3.133 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.5112, allocations: 80.41 kB / 0.6769 GB, free: 3.043 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.5113, allocations: 39.89 kB / 0.6769 GB, free: 3.004 MB / 494.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007451/0.5121, allocations: 341.9 kB / 0.6773 GB, free: 2.668 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009225/0.513, allocations: 0.5024 MB / 0.6777 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.513, allocations: 4 kB / 0.6778 GB, free: 2.113 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.957e-05/0.5131, allocations: 4 kB / 0.6778 GB, free: 2.109 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.5131, allocations: 12.75 kB / 0.6778 GB, free: 2.098 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00334/0.5165, allocations: 2.097 MB / 0.6798 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009068/0.5174, allocations: 420.8 kB / 0.6802 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002985/0.5177, allocations: 156.9 kB / 0.6804 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 5.425e-05/0.5178, allocations: 4.719 kB / 0.6804 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003945/0.5182, allocations: 229.6 kB / 0.6806 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.474e-06/0.5182, allocations: 5.094 kB / 0.6806 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.0007524/0.519, allocations: 377.4 kB / 0.681 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.74e-05/0.5191, allocations: 191.9 kB / 0.6811 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006743/0.5197, allocations: 477.8 kB / 0.6816 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.018e-05/0.5198, allocations: 33.7 kB / 0.6816 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/0.52, allocations: 244.6 kB / 0.6819 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/0.5202, allocations: 149.8 kB / 0.682 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/0.5202, allocations: 0 / 0.682 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001908/0.5204, allocations: 390.6 kB / 0.6824 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002646/0.5207, allocations: 137.3 kB / 0.6825 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.5211, allocations: 267.4 kB / 0.6828 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.5214, allocations: 164.7 kB / 0.6829 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.5214, allocations: 0 / 0.6829 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008295/0.5222, allocations: 478.3 kB / 0.6834 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004263/0.5227, allocations: 0.9655 MB / 0.6843 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.5227, allocations: 0.875 kB / 0.6843 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/0.5227, allocations: 8 kB / 0.6843 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000565/0.5233, allocations: 123.8 kB / 0.6844 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.5233, allocations: 4 kB / 0.6844 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005478/0.5239, allocations: 79.48 kB / 0.6845 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.637e-05/0.5239, allocations: 16 kB / 0.6845 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.406e-06/0.5239, allocations: 8 kB / 0.6845 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006599/0.5246, allocations: 369.3 kB / 0.6849 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.5246, allocations: 1.75 kB / 0.6849 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.5246, allocations: 11.98 kB / 0.6849 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005481/0.5252, allocations: 122 kB / 0.685 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.5252, allocations: 4 kB / 0.685 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005007/0.5257, allocations: 59.7 kB / 0.6851 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/0.5258, allocations: 23.94 kB / 0.6851 GB, free: 10.28 MB / 0.4981 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.0001763/0.526, allocations: 124.8 kB / 0.6852 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.5261, allocations: 67.16 kB / 0.6853 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001721/0.5263, allocations: 70.55 kB / 0.6854 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.5263, allocations: 4 kB / 0.6854 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.5263, allocations: 3.984 kB / 0.6854 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.5263, allocations: 0 / 0.6854 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007562/0.5271, allocations: 0.5795 MB / 0.6859 GB, free: 9.387 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.5271, allocations: 0 / 0.6859 GB, free: 9.387 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005461/0.5276, allocations: 99.81 kB / 0.686 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.849e-06/0.5277, allocations: 4.812 kB / 0.686 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.5277, allocations: 7.938 kB / 0.686 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.614e-06/0.5277, allocations: 7.906 kB / 0.686 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5277, allocations: 4 kB / 0.6861 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001039/0.5288, allocations: 0.6147 MB / 0.6867 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003247/0.5291, allocations: 200.8 kB / 0.6868 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.5292, allocations: 7.984 kB / 0.6869 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005639/0.5298, allocations: 62.11 kB / 0.6869 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.5299, allocations: 27.95 kB / 0.6869 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-05/0.53, allocations: 19.98 kB / 0.687 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of sort global known variables: time 0.0005066/0.5305, allocations: 363.2 kB / 0.6873 GB, free: 7.953 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007494/0.5312, allocations: 211.1 kB / 0.6875 GB, free: 7.746 MB / 0.4981 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.0002146/0.5314, allocations: 121.2 kB / 0.6876 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001126/0.5326, allocations: 0.651 MB / 0.6883 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5326, allocations: 0 / 0.6883 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003059/0.5329, allocations: 184.2 kB / 0.6884 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009052/0.5338, allocations: 158.5 kB / 0.6886 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.536, allocations: 0.8849 MB / 0.6894 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007636/0.5368, allocations: 0.9853 MB / 0.6904 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.5368, allocations: 0 / 0.6904 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of Templates: time 0.02006/0.5569, allocations: 10.65 MB / 0.7008 GB, free: 10.21 MB / 0.5137 GB make -j1 -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.makefile (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 & ./IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)