Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.738/1.738, allocations: 252 MB / 268 MB, free: 10.87 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009192/0.0009192, allocations: 170 kB / 327.6 MB, free: 2.117 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.596/1.596, allocations: 205.4 MB / 0.5786 GB, free: 20.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007786/0.0007789, allocations: 82 kB / 0.6832 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003708, allocations: 11.67 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.227, allocations: 106.3 MB / 0.9014 GB, free: 63.52 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.003315/0.2303, allocations: 3.338 MB / 0.9047 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002283/0.2326, allocations: 1.333 MB / 0.906 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004037/0.2331, allocations: 31.81 kB / 0.906 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002572/0.2333, allocations: 95.09 kB / 0.9061 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0004437/0.2338, allocations: 139 kB / 0.9063 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009779/0.2348, allocations: 0.5255 MB / 0.9068 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0006519/0.2354, allocations: 0.9055 MB / 0.9077 GB, free: 57.13 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000432/0.2359, allocations: 329.6 kB / 0.908 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002952/0.2362, allocations: 282.3 kB / 0.9082 GB, free: 56.51 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002446/0.2364, allocations: 278.1 kB / 0.9085 GB, free: 56.24 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 7.079e-05/0.2365, allocations: 20 kB / 0.9085 GB, free: 56.22 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.857e-05/0.2366, allocations: 24 kB / 0.9085 GB, free: 56.2 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.813e-05/0.2367, allocations: 111.3 kB / 0.9086 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.000197/0.2369, allocations: 331.4 kB / 0.909 GB, free: 55.75 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003976/0.2373, allocations: 0.6198 MB / 0.9096 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.2373, allocations: 4 kB / 0.9096 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.104e-06/0.2373, allocations: 0 / 0.9096 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.011e-05/0.2373, allocations: 0 / 0.9096 GB, free: 55.13 MB / 0.6042 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.001627/0.239, allocations: 1.067 MB / 0.9106 GB, free: 54.01 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.239, allocations: 8.031 kB / 0.9106 GB, free: 54 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.2391, allocations: 95.81 kB / 0.9107 GB, free: 53.91 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007548/0.2399, allocations: 0.5987 MB / 0.9113 GB, free: 53.26 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.603e-05/0.24, allocations: 104.9 kB / 0.9114 GB, free: 53.15 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.538e-05/0.2401, allocations: 48.38 kB / 0.9114 GB, free: 53.1 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009183/0.241, allocations: 0.6159 MB / 0.912 GB, free: 52.44 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.241, allocations: 4 kB / 0.9121 GB, free: 52.43 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.617e-05/0.2411, allocations: 20 kB / 0.9121 GB, free: 52.41 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.2411, allocations: 12 kB / 0.9121 GB, free: 52.4 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008802/0.242, allocations: 451.6 kB / 0.9125 GB, free: 51.96 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.2443, allocations: 2.133 MB / 0.9146 GB, free: 49.75 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.2455, allocations: 0.5147 MB / 0.9151 GB, free: 49.22 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004084/0.2459, allocations: 224.8 kB / 0.9153 GB, free: 49 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.2459, allocations: 15.94 kB / 0.9153 GB, free: 48.98 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006273/0.2466, allocations: 294.1 kB / 0.9156 GB, free: 48.68 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=45): time 2.675e-06/0.2466, allocations: 4 kB / 0.9156 GB, free: 48.68 MB / 0.6042 GB Notification: Performance of matching and sorting (n=45): time 0.001303/0.2479, allocations: 0.6372 MB / 0.9162 GB, free: 48.04 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.248, allocations: 84.86 kB / 0.9163 GB, free: 47.93 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005436/0.2485, allocations: 0.6256 MB / 0.9169 GB, free: 47.3 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.2486, allocations: 37.7 kB / 0.917 GB, free: 47.25 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.2487, allocations: 360.8 kB / 0.9173 GB, free: 46.9 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.293e-05/0.2488, allocations: 157.8 kB / 0.9175 GB, free: 46.74 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/0.2489, allocations: 8 kB / 0.9175 GB, free: 46.73 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.145e-05/0.2489, allocations: 326 kB / 0.9178 GB, free: 46.41 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000404/0.2493, allocations: 185 kB / 0.918 GB, free: 46.23 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004169/0.2498, allocations: 288.2 kB / 0.9182 GB, free: 45.91 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007991/0.2506, allocations: 497.9 kB / 0.9187 GB, free: 45.39 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2506, allocations: 7.938 kB / 0.9187 GB, free: 45.38 MB / 0.6042 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001004/0.2516, allocations: 0.6178 MB / 0.9193 GB, free: 44.75 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.359e-05/0.2517, allocations: 189.3 kB / 0.9195 GB, free: 44.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.2517, allocations: 4 kB / 0.9195 GB, free: 44.52 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.2517, allocations: 8 kB / 0.9195 GB, free: 44.51 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004512/0.2522, allocations: 111.8 kB / 0.9196 GB, free: 44.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.2522, allocations: 4 kB / 0.9196 GB, free: 44.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003833/0.2526, allocations: 79.28 kB / 0.9197 GB, free: 44.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.2526, allocations: 21.09 kB / 0.9197 GB, free: 44.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.903e-06/0.2527, allocations: 7.938 kB / 0.9197 GB, free: 44.29 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008886/0.2535, allocations: 0.5077 MB / 0.9202 GB, free: 43.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.2536, allocations: 0 / 0.9202 GB, free: 43.78 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.829e-06/0.2536, allocations: 4 kB / 0.9202 GB, free: 43.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.254, allocations: 107.9 kB / 0.9203 GB, free: 43.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.254, allocations: 7.938 kB / 0.9203 GB, free: 43.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.2543, allocations: 55.83 kB / 0.9204 GB, free: 43.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.2544, allocations: 20 kB / 0.9204 GB, free: 43.59 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002433/0.2546, allocations: 274.9 kB / 0.9207 GB, free: 43.31 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.663e-05/0.2547, allocations: 82.94 kB / 0.9207 GB, free: 43.23 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001345/0.2548, allocations: 79.34 kB / 0.9208 GB, free: 43.14 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.2549, allocations: 11.92 kB / 0.9208 GB, free: 43.13 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.2549, allocations: 0 / 0.9208 GB, free: 43.13 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.2549, allocations: 7.984 kB / 0.9208 GB, free: 43.12 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005337/0.2554, allocations: 0.618 MB / 0.9214 GB, free: 42.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2554, allocations: 3.938 kB / 0.9214 GB, free: 42.45 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000438/0.2559, allocations: 87.88 kB / 0.9215 GB, free: 42.37 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2559, allocations: 0 / 0.9215 GB, free: 42.37 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.14e-05/0.2559, allocations: 12 kB / 0.9215 GB, free: 42.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2559, allocations: 0 / 0.9215 GB, free: 42.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2559, allocations: 4 kB / 0.9215 GB, free: 42.35 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001324/0.2573, allocations: 0.7524 MB / 0.9223 GB, free: 41.58 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001845/0.2575, allocations: 196 kB / 0.9225 GB, free: 41.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.351e-05/0.2576, allocations: 19.98 kB / 0.9225 GB, free: 41.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003969/0.258, allocations: 36.09 kB / 0.9225 GB, free: 41.31 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.928e-05/0.2581, allocations: 31.95 kB / 0.9225 GB, free: 41.28 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/0.2581, allocations: 23.98 kB / 0.9226 GB, free: 41.26 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003952/0.2585, allocations: 439 kB / 0.923 GB, free: 40.84 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2585, allocations: 4 kB / 0.923 GB, free: 40.83 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005084/0.259, allocations: 211.4 kB / 0.9232 GB, free: 40.62 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001387/0.2592, allocations: 111.1 kB / 0.9233 GB, free: 40.51 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001348/0.2605, allocations: 0.8165 MB / 0.9241 GB, free: 39.67 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2605, allocations: 3.938 kB / 0.9241 GB, free: 39.66 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004124/0.261, allocations: 219.9 kB / 0.9243 GB, free: 39.45 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009134/0.2619, allocations: 196.7 kB / 0.9245 GB, free: 39.27 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001886/0.2638, allocations: 1.504 MB / 0.926 GB, free: 37.73 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.2641, allocations: 0.9183 MB / 0.9269 GB, free: 36.78 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.2643, allocations: 47.44 kB / 0.9269 GB, free: 36.73 MB / 0.6042 GB Notification: Performance of SimCode: time 3.41e-07/0.2643, allocations: 0 / 0.9269 GB, free: 36.73 MB / 0.6042 GB Notification: Performance of Templates: time 0.009871/0.2742, allocations: 8.59 MB / 0.9353 GB, free: 28.19 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)