Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.conf.json 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/IBPSA 4.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: translateModel(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 186.6 kB / 16.63 MB, free: 5.117 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4513/0.4513, allocations: 87.5 MB / 104.9 MB, free: 13.02 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 349.1 MB, free: 2.73 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009892/0.0009892, allocations: 97.97 kB / 420 MB, free: 8.496 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 51.91 kB / 0.4891 GB, free: 7.707 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3457, allocations: 70.06 MB / 0.5575 GB, free: 44.79 MB / 410.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.004627/0.3504, allocations: 4.12 MB / 0.5615 GB, free: 41.07 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.3523, allocations: 1.273 MB / 0.5627 GB, free: 39.79 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003513/0.3526, allocations: 23.88 kB / 0.5628 GB, free: 39.77 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002811/0.3529, allocations: 91.22 kB / 0.5629 GB, free: 39.68 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.3532, allocations: 154.8 kB / 0.563 GB, free: 39.53 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006772/0.3539, allocations: 384.2 kB / 0.5634 GB, free: 39.16 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005382/0.3545, allocations: 0.889 MB / 0.5642 GB, free: 38.27 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004584/0.3549, allocations: 426.1 kB / 0.5646 GB, free: 37.83 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002204/0.3551, allocations: 274.7 kB / 0.5649 GB, free: 37.56 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002356/0.3554, allocations: 306.3 kB / 0.5652 GB, free: 37.26 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.961e-05/0.3555, allocations: 40 kB / 0.5652 GB, free: 37.22 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.395e-05/0.3555, allocations: 40 kB / 0.5653 GB, free: 37.18 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.339e-05/0.3556, allocations: 131.4 kB / 0.5654 GB, free: 37.05 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002073/0.3559, allocations: 346 kB / 0.5657 GB, free: 36.71 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005484/0.3564, allocations: 0.991 MB / 0.5667 GB, free: 35.72 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.3564, allocations: 0 / 0.5667 GB, free: 35.72 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.3564, allocations: 4 kB / 0.5667 GB, free: 35.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.3564, allocations: 0 / 0.5667 GB, free: 35.71 MB / 410.7 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.001574/0.358, allocations: 1.077 MB / 0.5677 GB, free: 34.58 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.3581, allocations: 8.031 kB / 0.5678 GB, free: 34.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.3582, allocations: 84 kB / 0.5678 GB, free: 34.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006617/0.3589, allocations: 0.5495 MB / 0.5684 GB, free: 33.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.3589, allocations: 49.67 kB / 0.5684 GB, free: 33.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.303e-05/0.359, allocations: 60.28 kB / 0.5685 GB, free: 33.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008305/0.3598, allocations: 0.6078 MB / 0.5691 GB, free: 33.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.3598, allocations: 4 kB / 0.5691 GB, free: 33.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.519e-05/0.3599, allocations: 24 kB / 0.5691 GB, free: 33.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.3599, allocations: 16 kB / 0.5691 GB, free: 33.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00087/0.3608, allocations: 457 kB / 0.5696 GB, free: 32.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.363, allocations: 2.02 MB / 0.5715 GB, free: 30.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007549/0.3638, allocations: 445 kB / 0.5719 GB, free: 30.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003658/0.3641, allocations: 246.1 kB / 0.5722 GB, free: 29.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.842e-05/0.3642, allocations: 4.438 kB / 0.5722 GB, free: 29.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005864/0.3648, allocations: 261.3 kB / 0.5724 GB, free: 29.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.244e-06/0.3648, allocations: 3.938 kB / 0.5724 GB, free: 29.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001105/0.3659, allocations: 0.5844 MB / 0.573 GB, free: 29.03 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.366, allocations: 59.84 kB / 0.5731 GB, free: 28.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003586/0.3663, allocations: 445.9 kB / 0.5735 GB, free: 28.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.3664, allocations: 37.7 kB / 0.5735 GB, free: 28.47 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.3665, allocations: 325 kB / 0.5738 GB, free: 28.15 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.583e-05/0.3666, allocations: 161.7 kB / 0.574 GB, free: 27.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.3667, allocations: 102.1 kB / 0.5741 GB, free: 27.89 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.662e-05/0.3668, allocations: 362.8 kB / 0.5744 GB, free: 27.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003213/0.3671, allocations: 169 kB / 0.5746 GB, free: 27.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003409/0.3675, allocations: 253.8 kB / 0.5748 GB, free: 27.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000663/0.3682, allocations: 448 kB / 0.5753 GB, free: 26.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3682, allocations: 3.938 kB / 0.5753 GB, free: 26.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008457/0.369, allocations: 0.5624 MB / 0.5758 GB, free: 26.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.3691, allocations: 39.05 kB / 0.5759 GB, free: 25.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3691, allocations: 0 / 0.5759 GB, free: 25.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.3691, allocations: 4 kB / 0.5759 GB, free: 25.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00044/0.3696, allocations: 115.8 kB / 0.576 GB, free: 25.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.3696, allocations: 4 kB / 0.576 GB, free: 25.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.3699, allocations: 63.75 kB / 0.576 GB, free: 25.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.3699, allocations: 23.98 kB / 0.5761 GB, free: 25.79 MB / 410.7 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.0001903/0.3701, allocations: 207 kB / 0.5763 GB, free: 25.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.476e-05/0.3702, allocations: 59.28 kB / 0.5763 GB, free: 25.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.3703, allocations: 65.58 kB / 0.5764 GB, free: 25.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3703, allocations: 8 kB / 0.5764 GB, free: 25.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.3703, allocations: 0 / 0.5764 GB, free: 25.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3704, allocations: 0 / 0.5764 GB, free: 25.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001351/0.3717, allocations: 1.174 MB / 0.5775 GB, free: 24.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.3717, allocations: 0 / 0.5775 GB, free: 24.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004191/0.3721, allocations: 103.8 kB / 0.5776 GB, free: 24.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.3722, allocations: 0 / 0.5776 GB, free: 24.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.853e-05/0.3722, allocations: 12 kB / 0.5776 GB, free: 24.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.3722, allocations: 0 / 0.5776 GB, free: 24.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3722, allocations: 4 kB / 0.5776 GB, free: 24.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005464/0.3777, allocations: 4.201 MB / 0.5817 GB, free: 19.74 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/0.3778, allocations: 164.4 kB / 0.5819 GB, free: 19.56 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.605e-05/0.3779, allocations: 12 kB / 0.5819 GB, free: 19.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.3782, allocations: 39.81 kB / 0.582 GB, free: 19.51 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.887e-05/0.3783, allocations: 32.39 kB / 0.582 GB, free: 19.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.3783, allocations: 15.98 kB / 0.582 GB, free: 19.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002387/0.3785, allocations: 306.9 kB / 0.5823 GB, free: 19.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3785, allocations: 0 / 0.5823 GB, free: 19.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005486/0.3791, allocations: 195.5 kB / 0.5825 GB, free: 18.98 MB / 410.7 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.0001217/0.3792, allocations: 118.1 kB / 0.5826 GB, free: 18.85 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007883/0.38, allocations: 488.9 kB / 0.5831 GB, free: 18.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.38, allocations: 0 / 0.5831 GB, free: 18.36 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003481/0.3804, allocations: 218.9 kB / 0.5833 GB, free: 18.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007178/0.3811, allocations: 137 kB / 0.5834 GB, free: 18.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.3836, allocations: 1.937 MB / 0.5853 GB, free: 16.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.3838, allocations: 0.9059 MB / 0.5862 GB, free: 15.1 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002883/0.3841, allocations: 72.58 kB / 0.5862 GB, free: 15.03 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.3843, allocations: 43.44 kB / 0.5863 GB, free: 14.99 MB / 410.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3843, allocations: 0 / 0.5863 GB, free: 14.99 MB / 410.7 MB Notification: Performance of Templates: time 0.01042/0.3947, allocations: 6.978 MB / 0.5931 GB, free: 8.094 MB / 410.7 MB make -j1 -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & ./IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)