Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001776/0.001776, allocations: 106.3 kB / 16.27 MB, free: 6.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001938/0.001938, allocations: 191.1 kB / 17.2 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002522/0.002522, allocations: 282 kB / 291.3 MB, free: 14.56 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.197/1.197, allocations: 178.5 MB / 0.5079 GB, free: 12.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002824/0.002824, allocations: 91.86 kB / 0.6071 GB, free: 9.277 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.1844, allocations: 89.14 MB / 0.6941 GB, free: 60 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.00573/0.1902, allocations: 4.12 MB / 0.6982 GB, free: 11.91 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002395/0.1926, allocations: 1.325 MB / 0.6995 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003031/0.1929, allocations: 31.81 kB / 0.6995 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.1933, allocations: 126.7 kB / 0.6996 GB, free: 10.42 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003452/0.1936, allocations: 174.4 kB / 0.6998 GB, free: 10.25 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008733/0.1945, allocations: 418.4 kB / 0.7002 GB, free: 9.844 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0009283/0.1954, allocations: 0.9516 MB / 0.7011 GB, free: 8.887 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006449/0.1961, allocations: 466.3 kB / 0.7015 GB, free: 8.406 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003463/0.1965, allocations: 326.8 kB / 0.7019 GB, free: 8.086 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003541/0.1968, allocations: 338.3 kB / 0.7022 GB, free: 7.754 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001171/0.1969, allocations: 88 kB / 0.7023 GB, free: 7.668 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.1971, allocations: 92 kB / 0.7024 GB, free: 7.578 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.1972, allocations: 171.5 kB / 0.7025 GB, free: 7.41 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003481/0.1976, allocations: 402 kB / 0.7029 GB, free: 7.016 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0009326/0.1985, allocations: 1.028 MB / 0.7039 GB, free: 5.984 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1985, allocations: 4 kB / 0.7039 GB, free: 5.98 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.213e-06/0.1985, allocations: 0 / 0.7039 GB, free: 5.98 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.327e-06/0.1986, allocations: 0 / 0.7039 GB, free: 5.98 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.00182/0.2004, allocations: 1.073 MB / 0.705 GB, free: 4.848 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2004, allocations: 12.03 kB / 0.705 GB, free: 4.836 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.2006, allocations: 83.91 kB / 0.705 GB, free: 4.754 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008294/0.2014, allocations: 0.5572 MB / 0.7056 GB, free: 4.16 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.046e-05/0.2014, allocations: 41.69 kB / 0.7056 GB, free: 4.121 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.781e-05/0.2015, allocations: 64.36 kB / 0.7057 GB, free: 4.059 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.2027, allocations: 0.6039 MB / 0.7063 GB, free: 3.43 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.2027, allocations: 4 kB / 0.7063 GB, free: 3.426 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.571e-05/0.2028, allocations: 27.98 kB / 0.7063 GB, free: 3.398 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.2028, allocations: 12 kB / 0.7063 GB, free: 3.387 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.2038, allocations: 468.9 kB / 0.7068 GB, free: 2.93 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002934/0.2067, allocations: 2.008 MB / 0.7087 GB, free: 0.8477 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000939/0.2077, allocations: 437.5 kB / 0.7092 GB, free: 420 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004671/0.2082, allocations: 250.5 kB / 0.7094 GB, free: 168 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.806e-05/0.2082, allocations: 8.438 kB / 0.7094 GB, free: 160 kB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2942/0.5024, allocations: 251.4 kB / 0.7096 GB, free: 49.66 MB / 0.545 GB Notification: Performance of pre-optimization done (n=49): time 3.757e-06/0.5025, allocations: 0 / 0.7096 GB, free: 49.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=49): time 0.001283/0.5038, allocations: 0.588 MB / 0.7102 GB, free: 49.62 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.5038, allocations: 60.05 kB / 0.7103 GB, free: 49.56 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004757/0.5043, allocations: 441 kB / 0.7107 GB, free: 49.45 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.5043, allocations: 35.75 kB / 0.7107 GB, free: 49.41 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000194/0.5045, allocations: 322.8 kB / 0.711 GB, free: 49.31 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.757e-05/0.5046, allocations: 169.6 kB / 0.7112 GB, free: 49.21 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/0.5048, allocations: 91.14 kB / 0.7113 GB, free: 49.19 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.074e-05/0.5049, allocations: 366.6 kB / 0.7116 GB, free: 48.88 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003762/0.5052, allocations: 168 kB / 0.7118 GB, free: 48.88 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/0.5057, allocations: 248.6 kB / 0.712 GB, free: 48.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007817/0.5065, allocations: 453.8 kB / 0.7125 GB, free: 48.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.5065, allocations: 0 / 0.7125 GB, free: 48.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009055/0.5074, allocations: 0.5654 MB / 0.713 GB, free: 48.59 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.5074, allocations: 31.42 kB / 0.713 GB, free: 48.56 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.5074, allocations: 4.5 kB / 0.713 GB, free: 48.56 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.5075, allocations: 3.328 kB / 0.7131 GB, free: 48.56 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000478/0.5079, allocations: 114.2 kB / 0.7132 GB, free: 48.56 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.508, allocations: 6 kB / 0.7132 GB, free: 48.56 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003145/0.5083, allocations: 65.97 kB / 0.7132 GB, free: 48.53 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.317e-05/0.5083, allocations: 18.05 kB / 0.7132 GB, free: 48.53 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0002038/0.5085, allocations: 215.8 kB / 0.7135 GB, free: 48.39 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.664e-05/0.5086, allocations: 53.94 kB / 0.7135 GB, free: 48.36 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/0.5087, allocations: 64.94 kB / 0.7136 GB, free: 48.32 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.5087, allocations: 6.484 kB / 0.7136 GB, free: 48.32 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.5087, allocations: 1.188 kB / 0.7136 GB, free: 48.32 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.5088, allocations: 10.3 kB / 0.7136 GB, free: 48.32 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.5102, allocations: 1.176 MB / 0.7147 GB, free: 47.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.5102, allocations: 0 / 0.7147 GB, free: 47.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004406/0.5107, allocations: 98.67 kB / 0.7148 GB, free: 47.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.5107, allocations: 6.312 kB / 0.7148 GB, free: 47.66 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.817e-05/0.5107, allocations: 10.88 kB / 0.7148 GB, free: 47.65 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.5107, allocations: 3.406 kB / 0.7148 GB, free: 47.65 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.5107, allocations: 0 / 0.7148 GB, free: 47.65 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.5118, allocations: 0.7577 MB / 0.7156 GB, free: 47.26 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.512, allocations: 179.2 kB / 0.7158 GB, free: 47.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.147e-05/0.5121, allocations: 7.344 kB / 0.7158 GB, free: 47.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.5123, allocations: 23.03 kB / 0.7158 GB, free: 47.09 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.939e-05/0.5124, allocations: 39.5 kB / 0.7158 GB, free: 47.08 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.458e-05/0.5125, allocations: 15.62 kB / 0.7158 GB, free: 47.08 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002534/0.5127, allocations: 310 kB / 0.7161 GB, free: 46.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5127, allocations: 0 / 0.7161 GB, free: 46.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003976/0.5131, allocations: 145.2 kB / 0.7163 GB, free: 46.88 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * 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.0001026/0.5132, allocations: 115.2 kB / 0.7164 GB, free: 46.79 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0009681/0.5142, allocations: 499.9 kB / 0.7169 GB, free: 46.59 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5142, allocations: 2.062 kB / 0.7169 GB, free: 46.59 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000363/0.5146, allocations: 216.5 kB / 0.7171 GB, free: 46.52 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007169/0.5153, allocations: 154.9 kB / 0.7172 GB, free: 46.49 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002466/0.5178, allocations: 1.397 MB / 0.7186 GB, free: 45.72 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.5181, allocations: 0.885 MB / 0.7194 GB, free: 45.02 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.5183, allocations: 46.67 kB / 0.7195 GB, free: 45.01 MB / 0.545 GB Notification: Performance of SimCode: time 2.61e-07/0.5183, allocations: 5.969 kB / 0.7195 GB, free: 45.01 MB / 0.545 GB Notification: Performance of Templates: time 0.01102/0.5293, allocations: 7.591 MB / 0.7269 GB, free: 44.18 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)