Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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 Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.779/1.779, allocations: 288.3 MB / 303.2 MB, free: 8.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 177.1 kB / 371.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.731/1.731, allocations: 205.4 MB / 0.6306 GB, free: 9.992 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 86.92 kB / 0.7439 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005263/0.0005263, allocations: 14.59 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.244, allocations: 115.3 MB / 0.9794 GB, free: 27.71 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.003421/0.2475, allocations: 3.143 MB / 0.9825 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002676/0.2502, allocations: 1.256 MB / 0.9837 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007861/0.251, allocations: 23.88 kB / 0.9837 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002571/0.2513, allocations: 47.39 kB / 0.9838 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0009453/0.2523, allocations: 195.3 kB / 0.984 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.2534, allocations: 466.7 kB / 0.9844 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001112/0.2546, allocations: 0.6061 MB / 0.985 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004689/0.255, allocations: 255 kB / 0.9852 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004589/0.2555, allocations: 302.5 kB / 0.9855 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003745/0.2559, allocations: 258.4 kB / 0.9858 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.256, allocations: 20 kB / 0.9858 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.383e-05/0.2561, allocations: 20 kB / 0.9858 GB, free: 21.11 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.599e-05/0.2562, allocations: 115.4 kB / 0.9859 GB, free: 21 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.2563, allocations: 137.3 kB / 0.9861 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004653/0.2568, allocations: 0.6159 MB / 0.9867 GB, free: 20.24 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2568, allocations: 0 / 0.9867 GB, free: 20.24 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.264e-06/0.2568, allocations: 3.984 kB / 0.9867 GB, free: 20.24 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.517e-05/0.2569, allocations: 0 / 0.9867 GB, free: 20.24 MB / 0.6198 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.001908/0.2588, allocations: 1.075 MB / 0.9877 GB, free: 19.11 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.2588, allocations: 12.02 kB / 0.9877 GB, free: 19.1 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.259, allocations: 90.88 kB / 0.9878 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008092/0.2599, allocations: 0.5784 MB / 0.9884 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.26, allocations: 100.4 kB / 0.9885 GB, free: 18.28 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.123e-05/0.26, allocations: 52 kB / 0.9885 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009098/0.261, allocations: 0.6041 MB / 0.9891 GB, free: 17.58 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.261, allocations: 3.984 kB / 0.9891 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.72e-05/0.261, allocations: 24 kB / 0.9891 GB, free: 17.55 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.2611, allocations: 12 kB / 0.9891 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008377/0.2619, allocations: 443.6 kB / 0.9896 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00232/0.2642, allocations: 2.129 MB / 0.9916 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.2654, allocations: 0.5273 MB / 0.9922 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.786e-05/0.2654, allocations: 11.94 kB / 0.9922 GB, free: 14.35 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006089/0.266, allocations: 294.7 kB / 0.9925 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=45): time 2.425e-06/0.266, allocations: 224 / 0.9925 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=45): time 0.001295/0.2673, allocations: 0.6423 MB / 0.9931 GB, free: 13.4 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.2674, allocations: 88.8 kB / 0.9932 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005137/0.2679, allocations: 0.6178 MB / 0.9938 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.725e-05/0.268, allocations: 33.7 kB / 0.9938 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.2682, allocations: 372.7 kB / 0.9942 GB, free: 12.26 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.312e-05/0.2682, allocations: 153.8 kB / 0.9943 GB, free: 12.11 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-05/0.2683, allocations: 12 kB / 0.9943 GB, free: 12.09 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.024e-05/0.2683, allocations: 329.9 kB / 0.9946 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003771/0.2687, allocations: 181 kB / 0.9948 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004061/0.2691, allocations: 284.2 kB / 0.9951 GB, free: 11.27 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004083/0.2696, allocations: 234.4 kB / 0.9953 GB, free: 11.04 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2696, allocations: 0 / 0.9953 GB, free: 11.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009747/0.2705, allocations: 0.6139 MB / 0.9959 GB, free: 10.41 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.2707, allocations: 0.9908 MB / 0.9969 GB, free: 9.336 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.2708, allocations: 7.984 kB / 0.9969 GB, free: 9.328 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.2708, allocations: 4 kB / 0.9969 GB, free: 9.324 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004624/0.2712, allocations: 115.8 kB / 0.997 GB, free: 9.211 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.2713, allocations: 4 kB / 0.997 GB, free: 9.207 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003548/0.2716, allocations: 71.5 kB / 0.9971 GB, free: 9.137 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.555e-05/0.2717, allocations: 20 kB / 0.9971 GB, free: 9.117 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.874e-06/0.2717, allocations: 4 kB / 0.9971 GB, free: 9.113 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008399/0.2725, allocations: 0.5038 MB / 0.9976 GB, free: 8.605 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.2725, allocations: 4 kB / 0.9976 GB, free: 8.602 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.56e-06/0.2726, allocations: 7.953 kB / 0.9976 GB, free: 8.594 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.273, allocations: 103.8 kB / 0.9977 GB, free: 8.492 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.273, allocations: 4 kB / 0.9977 GB, free: 8.488 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003099/0.2733, allocations: 67.62 kB / 0.9978 GB, free: 8.422 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.785e-05/0.2733, allocations: 20 kB / 0.9978 GB, free: 8.402 MB / 0.6198 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 () * Number of clocked 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.0002736/0.2736, allocations: 273.7 kB / 0.998 GB, free: 8.125 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.609e-05/0.2737, allocations: 67.16 kB / 0.9981 GB, free: 8.059 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.2739, allocations: 83.33 kB / 0.9982 GB, free: 7.969 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.2739, allocations: 7.953 kB / 0.9982 GB, free: 7.961 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.2739, allocations: 0 / 0.9982 GB, free: 7.961 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.2739, allocations: 3.984 kB / 0.9982 GB, free: 7.957 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005678/0.2745, allocations: 0.6257 MB / 0.9988 GB, free: 7.281 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.2745, allocations: 4 kB / 0.9988 GB, free: 7.277 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004337/0.2749, allocations: 87.88 kB / 0.9989 GB, free: 7.191 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.2749, allocations: 7.938 kB / 0.9989 GB, free: 7.184 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.844e-05/0.275, allocations: 8 kB / 0.9989 GB, free: 7.176 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.275, allocations: 0 / 0.9989 GB, free: 7.176 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.275, allocations: 3.953 kB / 0.9989 GB, free: 7.172 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.2764, allocations: 0.7472 MB / 0.9996 GB, free: 6.406 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002071/0.2766, allocations: 192.1 kB / 0.9998 GB, free: 6.199 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.895e-05/0.2767, allocations: 8 kB / 0.9998 GB, free: 6.191 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.277, allocations: 47.95 kB / 0.9999 GB, free: 6.145 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.856e-05/0.2772, allocations: 35.91 kB / 0.9999 GB, free: 6.109 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.489e-05/0.2772, allocations: 20.11 kB / 0.9999 GB, free: 6.09 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0004062/0.2776, allocations: 431 kB / 1 GB, free: 5.676 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2776, allocations: 0 / 1 GB, free: 5.676 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005494/0.2782, allocations: 215.3 kB / 1.001 GB, free: 5.465 MB / 0.6198 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) * Number of clocked states: 0 () * 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.0001574/0.2783, allocations: 115.1 kB / 1.001 GB, free: 5.34 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001376/0.2797, allocations: 0.8096 MB / 1.001 GB, free: 4.504 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.2797, allocations: 4 kB / 1.001 GB, free: 4.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003967/0.2801, allocations: 223.3 kB / 1.002 GB, free: 4.281 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007468/0.2809, allocations: 177 kB / 1.002 GB, free: 4.113 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.2827, allocations: 1.38 MB / 1.003 GB, free: 2.707 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.2831, allocations: 0.9416 MB / 1.004 GB, free: 1.738 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003596/0.2834, allocations: 89.2 kB / 1.004 GB, free: 1.652 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.2836, allocations: 47.42 kB / 1.004 GB, free: 1.605 MB / 0.6198 GB Notification: Performance of SimCode: time 2.2e-07/0.2836, allocations: 0 / 1.004 GB, free: 1.605 MB / 0.6198 GB Notification: Performance of Templates: time 0.01201/0.2956, allocations: 6.89 MB / 1.011 GB, free: 10.79 MB / 0.6355 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)