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.006673/0.006673, allocations: 100.3 kB / 15.73 MB, free: 6.043 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.001646/0.001647, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.291/1.291, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002072/0.002072, allocations: 283 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9259/0.9259, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 91.86 kB / 0.6814 GB, free: 15.51 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1444, allocations: 86.97 MB / 0.7663 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005103/0.1496, allocations: 4.113 MB / 0.7704 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002403/0.152, allocations: 1.325 MB / 0.7717 GB, free: 2.984 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004693/0.1525, allocations: 19.94 kB / 0.7717 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0003677/0.1529, allocations: 126.7 kB / 0.7718 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004843/0.1534, allocations: 182.4 kB / 0.772 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008866/0.1543, allocations: 414.8 kB / 0.7724 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000949/0.1552, allocations: 0.9671 MB / 0.7733 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000586/0.1558, allocations: 462 kB / 0.7738 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003215/0.1562, allocations: 330.8 kB / 0.7741 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003192/0.1565, allocations: 342.3 kB / 0.7744 GB, free: 164 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.1566, allocations: 92 kB / 0.7745 GB, free: 72 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2892/0.4458, allocations: 87.55 kB / 0.7746 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002307/0.4461, allocations: 175.4 kB / 0.7747 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003688/0.4464, allocations: 394.6 kB / 0.7751 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.4475, allocations: 1.054 MB / 0.7761 GB, free: 9.773 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.4475, allocations: 5.031 kB / 0.7761 GB, free: 9.77 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.472e-06/0.4475, allocations: 0 / 0.7761 GB, free: 9.77 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.35e-05/0.4476, allocations: 0 / 0.7761 GB, free: 9.77 MB / 0.5606 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.001573/0.4491, allocations: 1.085 MB / 0.7772 GB, free: 9.129 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.4492, allocations: 12.25 kB / 0.7772 GB, free: 9.129 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.4493, allocations: 81.92 kB / 0.7773 GB, free: 9.09 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007687/0.4501, allocations: 0.5619 MB / 0.7778 GB, free: 8.816 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.4501, allocations: 45.19 kB / 0.7779 GB, free: 8.816 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.687e-05/0.4502, allocations: 61.98 kB / 0.7779 GB, free: 8.816 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009973/0.4512, allocations: 0.6067 MB / 0.7785 GB, free: 8.723 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.4513, allocations: 5.375 kB / 0.7785 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.07e-05/0.4513, allocations: 25.53 kB / 0.7786 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.4513, allocations: 16.53 kB / 0.7786 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008923/0.4522, allocations: 461.2 kB / 0.779 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002267/0.4545, allocations: 1.985 MB / 0.781 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007923/0.4553, allocations: 444.8 kB / 0.7814 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003934/0.4557, allocations: 245.1 kB / 0.7816 GB, free: 7.77 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.804e-05/0.4558, allocations: 5.156 kB / 0.7816 GB, free: 7.77 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004461/0.4562, allocations: 256.1 kB / 0.7819 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=49): time 1.793e-06/0.4562, allocations: 1.469 kB / 0.7819 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of matching and sorting (n=49): time 0.001141/0.4574, allocations: 0.5883 MB / 0.7824 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.658e-05/0.4574, allocations: 61.62 kB / 0.7825 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004072/0.4578, allocations: 442.9 kB / 0.7829 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.4579, allocations: 39.64 kB / 0.783 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.458, allocations: 323.4 kB / 0.7833 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.386e-05/0.4581, allocations: 166.3 kB / 0.7834 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.4582, allocations: 93.91 kB / 0.7835 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.929e-05/0.4583, allocations: 362.4 kB / 0.7839 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000367/0.4587, allocations: 162.2 kB / 0.784 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003904/0.4591, allocations: 257.5 kB / 0.7843 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006933/0.4598, allocations: 454.9 kB / 0.7847 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4598, allocations: 0.9062 kB / 0.7847 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009452/0.4607, allocations: 0.5593 MB / 0.7852 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.4608, allocations: 38.59 kB / 0.7853 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4608, allocations: 7.094 kB / 0.7853 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.4608, allocations: 5.719 kB / 0.7853 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004844/0.4613, allocations: 113.1 kB / 0.7854 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.4613, allocations: 9.781 kB / 0.7854 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002803/0.4616, allocations: 58.08 kB / 0.7855 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.358e-05/0.4617, allocations: 20.83 kB / 0.7855 GB, free: 5.504 MB / 0.5606 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.0001841/0.4618, allocations: 212.1 kB / 0.7857 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.81e-05/0.4619, allocations: 61.34 kB / 0.7857 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001165/0.462, allocations: 66.36 kB / 0.7858 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.462, allocations: 5.703 kB / 0.7858 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.4621, allocations: 0 / 0.7858 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.4621, allocations: 2.391 kB / 0.7858 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.4635, allocations: 1.178 MB / 0.787 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.4635, allocations: 0 / 0.787 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004528/0.464, allocations: 97.23 kB / 0.7871 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.464, allocations: 2.953 kB / 0.7871 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.092e-05/0.464, allocations: 11.03 kB / 0.7871 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.4641, allocations: 1.531 kB / 0.7871 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.4641, allocations: 2.75 kB / 0.7871 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.4652, allocations: 0.7653 MB / 0.7878 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.4653, allocations: 169.8 kB / 0.788 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.741e-05/0.4654, allocations: 15.25 kB / 0.788 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002749/0.4657, allocations: 22.44 kB / 0.788 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.256e-05/0.4658, allocations: 35.95 kB / 0.7881 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.566e-05/0.4658, allocations: 17.28 kB / 0.7881 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002664/0.4661, allocations: 308.5 kB / 0.7884 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4661, allocations: 0 / 0.7884 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003782/0.4665, allocations: 142.5 kB / 0.7885 GB, free: 3.805 MB / 0.5606 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 9.53e-05/0.4666, allocations: 113.1 kB / 0.7886 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007621/0.4673, allocations: 486.4 kB / 0.7891 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4673, allocations: 0 / 0.7891 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003586/0.4677, allocations: 212.2 kB / 0.7893 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006704/0.4684, allocations: 159.9 kB / 0.7894 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.4705, allocations: 1.35 MB / 0.7908 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.4708, allocations: 0.8884 MB / 0.7916 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002153/0.471, allocations: 63.84 kB / 0.7917 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.4711, allocations: 45.41 kB / 0.7917 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of SimCode: time 6.01e-07/0.4711, allocations: 3.938 kB / 0.7917 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of Templates: time 0.01167/0.4828, allocations: 6.119 MB / 0.7977 GB, free: 1.516 MB / 0.5606 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)