Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID") translateModel(IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008316/0.0008317, allocations: 87.2 kB / 16.66 MB, free: 5.742 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.000973/0.0009734, allocations: 178.9 kB / 17.57 MB, free: 5.477 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.371/1.371, allocations: 223.3 MB / 241.6 MB, free: 14.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7055/0.7055, allocations: 115.5 MB / 408.2 MB, free: 7.141 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003585/0.0003586, allocations: 8 kB / 496.5 MB, free: 15.71 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4599/0.4603, allocations: 77.51 MB / 0.5606 GB, free: 35.53 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPID): time 0.003252/0.4636, allocations: 3.3 MB / 0.5638 GB, free: 33.09 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.4657, allocations: 1.299 MB / 0.5651 GB, free: 32.16 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003221/0.466, allocations: 28.12 kB / 0.5651 GB, free: 32.15 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002786/0.4663, allocations: 88.06 kB / 0.5652 GB, free: 32.09 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005105/0.4669, allocations: 137.9 kB / 0.5653 GB, free: 32 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009793/0.4678, allocations: 0.5266 MB / 0.5658 GB, free: 31.71 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008803/0.4687, allocations: 0.8977 MB / 0.5667 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004823/0.4692, allocations: 327.1 kB / 0.567 GB, free: 31.11 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003584/0.4696, allocations: 287.4 kB / 0.5673 GB, free: 30.97 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003045/0.4699, allocations: 273.7 kB / 0.5675 GB, free: 30.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.482e-05/0.47, allocations: 22.12 kB / 0.5676 GB, free: 30.82 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.693e-05/0.4701, allocations: 20.47 kB / 0.5676 GB, free: 30.82 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.4702, allocations: 112.6 kB / 0.5677 GB, free: 30.76 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002405/0.4704, allocations: 330.4 kB / 0.568 GB, free: 30.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006798/0.4711, allocations: 0.6296 MB / 0.5686 GB, free: 30.35 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.4711, allocations: 1.438 kB / 0.5686 GB, free: 30.35 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4711, allocations: 0 / 0.5686 GB, free: 30.35 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.4711, allocations: 0 / 0.5686 GB, free: 30.35 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001735/0.4729, allocations: 1.046 MB / 0.5696 GB, free: 29.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.4729, allocations: 14.98 kB / 0.5696 GB, free: 29.63 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.4731, allocations: 93.69 kB / 0.5697 GB, free: 29.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008429/0.4739, allocations: 0.6066 MB / 0.5703 GB, free: 29.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.474, allocations: 97.95 kB / 0.5704 GB, free: 29.08 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.198e-05/0.4741, allocations: 52.95 kB / 0.5705 GB, free: 29.06 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.4752, allocations: 0.6133 MB / 0.5711 GB, free: 28.75 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.4753, allocations: 5.906 kB / 0.5711 GB, free: 28.75 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.347e-05/0.4753, allocations: 21.34 kB / 0.5711 GB, free: 28.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.4753, allocations: 13.34 kB / 0.5711 GB, free: 28.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000983/0.4763, allocations: 448.9 kB / 0.5715 GB, free: 28.59 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002637/0.479, allocations: 2.121 MB / 0.5736 GB, free: 27.18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.4802, allocations: 0.53 MB / 0.5741 GB, free: 26.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004658/0.4806, allocations: 227 kB / 0.5743 GB, free: 26.89 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.857e-05/0.4807, allocations: 5.281 kB / 0.5743 GB, free: 26.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006696/0.4814, allocations: 293.9 kB / 0.5746 GB, free: 26.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=45): time 2.214e-06/0.4814, allocations: 1 kB / 0.5746 GB, free: 26.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=45): time 0.00149/0.4829, allocations: 0.6422 MB / 0.5753 GB, free: 26.53 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.4829, allocations: 86.62 kB / 0.5753 GB, free: 26.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007348/0.4837, allocations: 0.6133 MB / 0.5759 GB, free: 26.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.252e-05/0.4837, allocations: 41.39 kB / 0.576 GB, free: 26.12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/0.4839, allocations: 357.9 kB / 0.5763 GB, free: 25.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.4841, allocations: 153 kB / 0.5765 GB, free: 25.72 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.957e-05/0.4841, allocations: 54.42 kB / 0.5765 GB, free: 25.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.165e-05/0.4842, allocations: 326.3 kB / 0.5768 GB, free: 25.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000458/0.4847, allocations: 192.2 kB / 0.577 GB, free: 25.31 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004501/0.4851, allocations: 289.9 kB / 0.5773 GB, free: 25.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008418/0.486, allocations: 494.2 kB / 0.5778 GB, free: 24.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.486, allocations: 5.312 kB / 0.5778 GB, free: 24.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001127/0.4871, allocations: 0.6187 MB / 0.5784 GB, free: 24.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.412e-05/0.4872, allocations: 190.7 kB / 0.5786 GB, free: 24.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.4872, allocations: 1.906 kB / 0.5786 GB, free: 24.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.4872, allocations: 5.438 kB / 0.5786 GB, free: 24.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004643/0.4877, allocations: 113.1 kB / 0.5787 GB, free: 24.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.4877, allocations: 5.438 kB / 0.5787 GB, free: 24.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003873/0.4881, allocations: 78.08 kB / 0.5787 GB, free: 24.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.668e-05/0.4882, allocations: 18.55 kB / 0.5788 GB, free: 24.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.283e-06/0.4882, allocations: 8.094 kB / 0.5788 GB, free: 24.3 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000969/0.4892, allocations: 0.503 MB / 0.5793 GB, free: 24.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.4892, allocations: 7.312 kB / 0.5793 GB, free: 24.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.443e-06/0.4892, allocations: 5.406 kB / 0.5793 GB, free: 24.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/0.4896, allocations: 109.5 kB / 0.5794 GB, free: 24.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.4896, allocations: 6.078 kB / 0.5794 GB, free: 24.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003341/0.49, allocations: 58.25 kB / 0.5794 GB, free: 24.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.229e-05/0.49, allocations: 19.69 kB / 0.5795 GB, free: 24.03 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0002383/0.4903, allocations: 276.2 kB / 0.5797 GB, free: 23.78 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.421e-05/0.4904, allocations: 74.16 kB / 0.5798 GB, free: 23.74 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001477/0.4905, allocations: 80.11 kB / 0.5799 GB, free: 23.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.4905, allocations: 5.203 kB / 0.5799 GB, free: 23.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.4905, allocations: 4 kB / 0.5799 GB, free: 23.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.4905, allocations: 3.578 kB / 0.5799 GB, free: 23.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006667/0.4912, allocations: 0.6149 MB / 0.5805 GB, free: 23.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.4912, allocations: 3.938 kB / 0.5805 GB, free: 23.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000453/0.4917, allocations: 88.66 kB / 0.5806 GB, free: 23.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.4917, allocations: 5.984 kB / 0.5806 GB, free: 23.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/0.4917, allocations: 13.16 kB / 0.5806 GB, free: 23.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4917, allocations: 1.562 kB / 0.5806 GB, free: 23.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4918, allocations: 4 kB / 0.5806 GB, free: 23.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.4932, allocations: 0.7493 MB / 0.5813 GB, free: 22.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/0.4934, allocations: 203.9 kB / 0.5815 GB, free: 22.78 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.332e-05/0.4935, allocations: 8.219 kB / 0.5815 GB, free: 22.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004143/0.4939, allocations: 44.58 kB / 0.5816 GB, free: 22.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.555e-05/0.494, allocations: 33.58 kB / 0.5816 GB, free: 22.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.485e-05/0.494, allocations: 17.78 kB / 0.5816 GB, free: 22.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004803/0.4945, allocations: 433.2 kB / 0.582 GB, free: 22.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4945, allocations: 0 / 0.582 GB, free: 22.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005849/0.4951, allocations: 219.2 kB / 0.5822 GB, free: 22.51 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.0001294/0.4953, allocations: 106.4 kB / 0.5823 GB, free: 22.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.4968, allocations: 0.8158 MB / 0.5831 GB, free: 22.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4968, allocations: 1.094 kB / 0.5831 GB, free: 22.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000468/0.4973, allocations: 226.2 kB / 0.5834 GB, free: 21.99 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009476/0.4983, allocations: 195.1 kB / 0.5835 GB, free: 21.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.5003, allocations: 1.499 MB / 0.585 GB, free: 20.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.5007, allocations: 0.9162 MB / 0.5859 GB, free: 20.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.5009, allocations: 51.34 kB / 0.5859 GB, free: 20.26 MB / 446.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5009, allocations: 0 / 0.5859 GB, free: 20.26 MB / 446.1 MB Notification: Performance of Templates: time 0.01302/0.5139, allocations: 8.542 MB / 0.5943 GB, free: 16.31 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.makefile (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.sim & ./IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)