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.004237/0.004237, allocations: 96.31 kB / 15.73 MB, free: 6.039 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.001122/0.001122, allocations: 195.6 kB / 16.67 MB, free: 5.965 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.288/1.288, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002031/0.002031, allocations: 270.6 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9409/0.9409, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 87.86 kB / 0.6814 GB, free: 15.54 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1408, allocations: 86.97 MB / 0.7663 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.004556/0.1453, allocations: 4.128 MB / 0.7704 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001923/0.1473, allocations: 1.321 MB / 0.7717 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000263/0.1475, allocations: 27.88 kB / 0.7717 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002633/0.1478, allocations: 126.8 kB / 0.7718 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003055/0.1481, allocations: 178.3 kB / 0.772 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000707/0.1489, allocations: 424 kB / 0.7724 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007522/0.1496, allocations: 0.9632 MB / 0.7733 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000523/0.1501, allocations: 462 kB / 0.7738 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002804/0.1504, allocations: 322.8 kB / 0.7741 GB, free: 0.5273 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003076/0.1507, allocations: 338.3 kB / 0.7744 GB, free: 200 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.799e-05/0.1509, allocations: 92 kB / 0.7745 GB, free: 108 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.151, allocations: 96 kB / 0.7746 GB, free: 12 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.2765/0.4275, allocations: 173.2 kB / 0.7747 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003758/0.4279, allocations: 394 kB / 0.7751 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001143/0.4291, allocations: 1.063 MB / 0.7762 GB, free: 9.852 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.4291, allocations: 0.9062 kB / 0.7762 GB, free: 9.852 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.823e-06/0.4291, allocations: 0 / 0.7762 GB, free: 9.852 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.184e-05/0.4291, allocations: 4.688 kB / 0.7762 GB, free: 9.848 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.001569/0.4307, allocations: 1.097 MB / 0.7772 GB, free: 9.188 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.4307, allocations: 10.38 kB / 0.7772 GB, free: 9.188 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.4308, allocations: 85.8 kB / 0.7773 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007785/0.4316, allocations: 0.5705 MB / 0.7779 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.517e-05/0.4317, allocations: 43.56 kB / 0.7779 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.271e-05/0.4318, allocations: 59.78 kB / 0.778 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.4328, allocations: 0.6033 MB / 0.7786 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.516e-05/0.4328, allocations: 10.48 kB / 0.7786 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.246e-05/0.4329, allocations: 23.33 kB / 0.7786 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.4329, allocations: 14.31 kB / 0.7786 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009218/0.4339, allocations: 466.7 kB / 0.7791 GB, free: 8.766 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.4362, allocations: 1.991 MB / 0.781 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008263/0.437, allocations: 440.4 kB / 0.7814 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004131/0.4374, allocations: 240 kB / 0.7817 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.4375, allocations: 12 kB / 0.7817 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004696/0.4379, allocations: 260 kB / 0.7819 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=49): time 2.034e-06/0.438, allocations: 0.5938 kB / 0.7819 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of matching and sorting (n=49): time 0.001195/0.4392, allocations: 0.593 MB / 0.7825 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/0.4392, allocations: 57.09 kB / 0.7825 GB, free: 7.379 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000412/0.4396, allocations: 446.8 kB / 0.783 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.4397, allocations: 36.77 kB / 0.783 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.4398, allocations: 334.3 kB / 0.7833 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.516e-05/0.4399, allocations: 170.1 kB / 0.7835 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.44, allocations: 92.53 kB / 0.7836 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.47e-05/0.4401, allocations: 363.5 kB / 0.7839 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003694/0.4405, allocations: 166 kB / 0.7841 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.4409, allocations: 255.4 kB / 0.7843 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007508/0.4416, allocations: 448 kB / 0.7847 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4417, allocations: 5.188 kB / 0.7848 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009852/0.4427, allocations: 0.562 MB / 0.7853 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.4427, allocations: 37.81 kB / 0.7853 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4427, allocations: 5.516 kB / 0.7853 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.4427, allocations: 5.219 kB / 0.7853 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004802/0.4432, allocations: 119.6 kB / 0.7855 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.4432, allocations: 8.719 kB / 0.7855 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002979/0.4435, allocations: 61.67 kB / 0.7855 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.337e-05/0.4436, allocations: 18.38 kB / 0.7855 GB, free: 5.531 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.000186/0.4438, allocations: 206 kB / 0.7857 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.93e-05/0.4438, allocations: 57.59 kB / 0.7858 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.4439, allocations: 67.53 kB / 0.7859 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.444, allocations: 6.312 kB / 0.7859 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.444, allocations: 0 / 0.7859 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.444, allocations: 4.844 kB / 0.7859 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001486/0.4455, allocations: 1.182 MB / 0.787 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4455, allocations: 4 kB / 0.787 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004535/0.4459, allocations: 101 kB / 0.7871 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.446, allocations: 3.406 kB / 0.7871 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.446, allocations: 10.69 kB / 0.7871 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.446, allocations: 3.562 kB / 0.7871 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.446, allocations: 0.6094 kB / 0.7871 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/0.4472, allocations: 0.7618 MB / 0.7879 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.4473, allocations: 171.1 kB / 0.7881 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.068e-05/0.4474, allocations: 11.59 kB / 0.7881 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002881/0.4477, allocations: 22.25 kB / 0.7881 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.418e-05/0.4478, allocations: 39.28 kB / 0.7881 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-05/0.4478, allocations: 18.88 kB / 0.7881 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002663/0.4481, allocations: 313.6 kB / 0.7884 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4481, allocations: 0 / 0.7884 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003821/0.4485, allocations: 141.7 kB / 0.7886 GB, free: 3.828 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.03e-05/0.4486, allocations: 116.1 kB / 0.7887 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008192/0.4494, allocations: 484 kB / 0.7891 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4494, allocations: 3 kB / 0.7892 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.4498, allocations: 217.1 kB / 0.7894 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007368/0.4505, allocations: 149.2 kB / 0.7895 GB, free: 3.426 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.4527, allocations: 1.357 MB / 0.7908 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.453, allocations: 0.8921 MB / 0.7917 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002413/0.4533, allocations: 68.95 kB / 0.7918 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.4534, allocations: 37.88 kB / 0.7918 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.4534, allocations: 0 / 0.7918 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of Templates: time 0.01115/0.4645, allocations: 6.008 MB / 0.7977 GB, free: 1.551 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)