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.001316/0.001316, allocations: 105.6 kB / 16.37 MB, free: 6.477 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.001304/0.001304, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.305/1.305, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002129/0.002129, allocations: 277.5 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9113/0.9113, allocations: 169.3 MB / 0.4989 GB, free: 4.473 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 87.89 kB / 0.5967 GB, free: 14.49 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1563, allocations: 86.97 MB / 0.6816 GB, free: 7.508 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.004897/0.1613, allocations: 4.123 MB / 0.6856 GB, free: 3.359 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.1633, allocations: 1.317 MB / 0.6869 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000257/0.1636, allocations: 27.88 kB / 0.6869 GB, free: 2.008 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002839/0.1639, allocations: 126.7 kB / 0.687 GB, free: 1.883 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002816/0.1642, allocations: 178.4 kB / 0.6872 GB, free: 1.707 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007195/0.1649, allocations: 417.4 kB / 0.6876 GB, free: 1.305 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007649/0.1657, allocations: 0.9593 MB / 0.6886 GB, free: 352 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2852/0.4509, allocations: 456.1 kB / 0.689 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008011/0.4517, allocations: 330.2 kB / 0.6893 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007194/0.4524, allocations: 332.4 kB / 0.6896 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003797/0.4528, allocations: 90.47 kB / 0.6897 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003392/0.4532, allocations: 94.91 kB / 0.6898 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002632/0.4535, allocations: 181.8 kB / 0.69 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006436/0.4541, allocations: 391.5 kB / 0.6903 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001671/0.4558, allocations: 1.065 MB / 0.6914 GB, free: 13.13 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4558, allocations: 0 / 0.6914 GB, free: 13.13 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4559, allocations: 0 / 0.6914 GB, free: 13.13 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.278e-05/0.4559, allocations: 0.6875 kB / 0.6914 GB, free: 13.13 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002761/0.4587, allocations: 1.07 MB / 0.6924 GB, free: 12.5 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4587, allocations: 10.94 kB / 0.6924 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001818/0.4589, allocations: 87.11 kB / 0.6925 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000934/0.4599, allocations: 0.56 MB / 0.6931 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.336e-05/0.4599, allocations: 49.75 kB / 0.6931 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.743e-05/0.46, allocations: 56.36 kB / 0.6932 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.4611, allocations: 0.6063 MB / 0.6938 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.4611, allocations: 6.031 kB / 0.6938 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-05/0.4612, allocations: 26.73 kB / 0.6938 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.4612, allocations: 15.44 kB / 0.6938 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009309/0.4621, allocations: 458.6 kB / 0.6942 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002706/0.4649, allocations: 1.997 MB / 0.6962 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000848/0.4657, allocations: 444.1 kB / 0.6966 GB, free: 10.65 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004198/0.4661, allocations: 239.9 kB / 0.6968 GB, free: 10.56 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.136e-05/0.4662, allocations: 5.156 kB / 0.6969 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005152/0.4667, allocations: 257.1 kB / 0.6971 GB, free: 10.44 MB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 2.234e-06/0.4667, allocations: 2.312 kB / 0.6971 GB, free: 10.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.001221/0.468, allocations: 0.5879 MB / 0.6977 GB, free: 10.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.468, allocations: 58.55 kB / 0.6977 GB, free: 10.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004946/0.4685, allocations: 445 kB / 0.6982 GB, free: 9.918 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.4685, allocations: 37.91 kB / 0.6982 GB, free: 9.879 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.4687, allocations: 321.6 kB / 0.6985 GB, free: 9.625 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.929e-05/0.4689, allocations: 167.1 kB / 0.6987 GB, free: 9.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.469, allocations: 95.73 kB / 0.6987 GB, free: 9.445 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.822e-05/0.4691, allocations: 364.7 kB / 0.6991 GB, free: 9.109 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003668/0.4695, allocations: 166.8 kB / 0.6993 GB, free: 9.051 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000407/0.4699, allocations: 254.3 kB / 0.6995 GB, free: 8.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007562/0.4706, allocations: 456.2 kB / 0.6999 GB, free: 8.645 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4707, allocations: 0.9688 kB / 0.6999 GB, free: 8.645 MB / 494.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000953/0.4716, allocations: 0.5595 MB / 0.7005 GB, free: 8.387 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.4717, allocations: 37.03 kB / 0.7005 GB, free: 8.352 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.4717, allocations: 2.688 kB / 0.7005 GB, free: 8.352 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.4717, allocations: 5.391 kB / 0.7005 GB, free: 8.352 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004866/0.4722, allocations: 116.1 kB / 0.7006 GB, free: 8.344 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.4722, allocations: 8.453 kB / 0.7006 GB, free: 8.344 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003113/0.4725, allocations: 56.33 kB / 0.7007 GB, free: 8.312 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.4726, allocations: 18.66 kB / 0.7007 GB, free: 8.309 MB / 494.1 MB 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.0002027/0.4728, allocations: 207.2 kB / 0.7009 GB, free: 8.141 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.768e-05/0.4729, allocations: 57.98 kB / 0.701 GB, free: 8.109 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.473, allocations: 65.17 kB / 0.701 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.473, allocations: 9.594 kB / 0.701 GB, free: 8.059 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.473, allocations: 0.9844 kB / 0.701 GB, free: 8.059 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.473, allocations: 7.047 kB / 0.701 GB, free: 8.055 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.4747, allocations: 1.178 MB / 0.7022 GB, free: 7.395 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4748, allocations: 0 / 0.7022 GB, free: 7.395 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004603/0.4752, allocations: 97.33 kB / 0.7023 GB, free: 7.387 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.4752, allocations: 1.719 kB / 0.7023 GB, free: 7.387 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.355e-05/0.4753, allocations: 16.88 kB / 0.7023 GB, free: 7.375 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.4753, allocations: 2 kB / 0.7023 GB, free: 7.375 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4753, allocations: 1.469 kB / 0.7023 GB, free: 7.375 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.4765, allocations: 0.7663 MB / 0.7031 GB, free: 6.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001618/0.4767, allocations: 172 kB / 0.7032 GB, free: 6.824 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.37e-05/0.4768, allocations: 7.812 kB / 0.7032 GB, free: 6.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000276/0.477, allocations: 24.88 kB / 0.7033 GB, free: 6.812 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.4772, allocations: 37.22 kB / 0.7033 GB, free: 6.805 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.913e-05/0.4772, allocations: 10.38 kB / 0.7033 GB, free: 6.805 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003483/0.4775, allocations: 309.3 kB / 0.7036 GB, free: 6.652 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4776, allocations: 4 kB / 0.7036 GB, free: 6.648 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000485/0.478, allocations: 146.1 kB / 0.7037 GB, free: 6.605 MB / 494.1 MB 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.0001293/0.4782, allocations: 112.1 kB / 0.7038 GB, free: 6.512 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008955/0.4791, allocations: 488.2 kB / 0.7043 GB, free: 6.312 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4791, allocations: 0 / 0.7043 GB, free: 6.312 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003967/0.4795, allocations: 219.8 kB / 0.7045 GB, free: 6.246 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007239/0.4802, allocations: 160.2 kB / 0.7047 GB, free: 6.195 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/0.4826, allocations: 1.33 MB / 0.706 GB, free: 5.438 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.483, allocations: 0.8923 MB / 0.7068 GB, free: 4.727 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000264/0.4833, allocations: 67.61 kB / 0.7069 GB, free: 4.703 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.4834, allocations: 40.64 kB / 0.7069 GB, free: 4.695 MB / 494.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4834, allocations: 0 / 0.7069 GB, free: 4.695 MB / 494.1 MB Notification: Performance of Templates: time 0.01234/0.4958, allocations: 5.912 MB / 0.7127 GB, free: 4.332 MB / 494.1 MB 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)