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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006395/0.006396, allocations: 101.1 kB / 15.88 MB, free: 6.312 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.00132/0.00132, allocations: 195.5 kB / 16.79 MB, free: 6.242 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.361/1.361, allocations: 222.9 MB / 240.5 MB, free: 4.488 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7827/0.7827, allocations: 122.9 MB / 413.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 64.16 kB / 0.4904 GB, free: 14.41 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1632/0.1645, allocations: 77.93 MB / 0.5665 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.005259/0.1698, allocations: 4.107 MB / 0.5705 GB, free: 12.55 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002342/0.1722, allocations: 1.27 MB / 0.5718 GB, free: 11.27 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003937/0.1726, allocations: 23.88 kB / 0.5718 GB, free: 11.25 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003282/0.173, allocations: 91.22 kB / 0.5719 GB, free: 11.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003152/0.1733, allocations: 146.8 kB / 0.572 GB, free: 11.02 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007934/0.1741, allocations: 387 kB / 0.5724 GB, free: 10.64 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007609/0.1749, allocations: 0.8812 MB / 0.5732 GB, free: 9.758 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005939/0.1755, allocations: 438.1 kB / 0.5737 GB, free: 9.309 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003021/0.1758, allocations: 262.8 kB / 0.5739 GB, free: 9.051 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002999/0.1761, allocations: 310.3 kB / 0.5742 GB, free: 8.746 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.663e-05/0.1762, allocations: 40 kB / 0.5742 GB, free: 8.707 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.279e-05/0.1763, allocations: 40 kB / 0.5743 GB, free: 8.668 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.1764, allocations: 131.4 kB / 0.5744 GB, free: 8.539 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002969/0.1767, allocations: 346 kB / 0.5747 GB, free: 8.199 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007913/0.1775, allocations: 0.9931 MB / 0.5757 GB, free: 7.203 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.1775, allocations: 4 kB / 0.5757 GB, free: 7.199 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1775, allocations: 7.875 kB / 0.5757 GB, free: 7.191 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.1776, allocations: 0 / 0.5757 GB, free: 7.191 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001806/0.1794, allocations: 1.073 MB / 0.5768 GB, free: 6.059 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.1794, allocations: 12.03 kB / 0.5768 GB, free: 6.047 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.1795, allocations: 80 kB / 0.5769 GB, free: 5.969 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007867/0.1803, allocations: 0.5456 MB / 0.5774 GB, free: 5.391 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.302e-05/0.1804, allocations: 53.61 kB / 0.5774 GB, free: 5.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.865e-05/0.1805, allocations: 60.28 kB / 0.5775 GB, free: 5.281 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.1816, allocations: 0.6001 MB / 0.5781 GB, free: 4.656 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.1816, allocations: 11.94 kB / 0.5781 GB, free: 4.645 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.498e-05/0.1817, allocations: 24 kB / 0.5781 GB, free: 4.621 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.1817, allocations: 12 kB / 0.5781 GB, free: 4.609 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009678/0.1826, allocations: 453 kB / 0.5786 GB, free: 4.164 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002793/0.1855, allocations: 2.024 MB / 0.5805 GB, free: 2.066 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008973/0.1864, allocations: 445.7 kB / 0.581 GB, free: 1.625 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004449/0.1868, allocations: 238.1 kB / 0.5812 GB, free: 1.391 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.665e-05/0.1869, allocations: 8.438 kB / 0.5812 GB, free: 1.383 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006338/0.1875, allocations: 265.2 kB / 0.5815 GB, free: 1.109 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 2.405e-06/0.1875, allocations: 0 / 0.5815 GB, free: 1.109 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.001261/0.1888, allocations: 0.5851 MB / 0.582 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.1888, allocations: 55.84 kB / 0.5821 GB, free: 464 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004844/0.1893, allocations: 445.9 kB / 0.5825 GB, free: 8 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.2675/0.4569, allocations: 35.7 kB / 0.5825 GB, free: 23.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003247/0.4572, allocations: 321.3 kB / 0.5828 GB, free: 23.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.4574, allocations: 161.7 kB / 0.583 GB, free: 23.31 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.4576, allocations: 97.5 kB / 0.5831 GB, free: 23.29 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.4577, allocations: 366.8 kB / 0.5834 GB, free: 22.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004595/0.4581, allocations: 170.4 kB / 0.5836 GB, free: 22.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004294/0.4586, allocations: 250 kB / 0.5838 GB, free: 22.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007842/0.4594, allocations: 453.2 kB / 0.5843 GB, free: 22.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.4594, allocations: 1.375 kB / 0.5843 GB, free: 22.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00109/0.4605, allocations: 0.555 MB / 0.5848 GB, free: 22.58 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.85e-05/0.4605, allocations: 40.67 kB / 0.5849 GB, free: 22.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.4605, allocations: 5.094 kB / 0.5849 GB, free: 22.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.4606, allocations: 3.625 kB / 0.5849 GB, free: 22.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005132/0.4611, allocations: 117.4 kB / 0.585 GB, free: 22.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.4611, allocations: 5.219 kB / 0.585 GB, free: 22.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003637/0.4615, allocations: 66.53 kB / 0.585 GB, free: 22.51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-05/0.4615, allocations: 18.33 kB / 0.5851 GB, free: 22.5 MB / 446.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.0002512/0.4618, allocations: 207.7 kB / 0.5853 GB, free: 22.33 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.29e-05/0.4619, allocations: 57.62 kB / 0.5853 GB, free: 22.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.462, allocations: 62.33 kB / 0.5854 GB, free: 22.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.462, allocations: 7.938 kB / 0.5854 GB, free: 22.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.462, allocations: 4.875 kB / 0.5854 GB, free: 22.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.462, allocations: 3.047 kB / 0.5854 GB, free: 22.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/0.4638, allocations: 1.174 MB / 0.5865 GB, free: 21.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.4638, allocations: 7.781 kB / 0.5865 GB, free: 21.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004738/0.4643, allocations: 98.06 kB / 0.5866 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.4643, allocations: 1.688 kB / 0.5866 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.185e-05/0.4644, allocations: 9.406 kB / 0.5866 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.4644, allocations: 1.875 kB / 0.5866 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.4644, allocations: 4.438 kB / 0.5867 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.4656, allocations: 0.7593 MB / 0.5874 GB, free: 21.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001545/0.4658, allocations: 176.8 kB / 0.5876 GB, free: 21.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.177e-05/0.4659, allocations: 12.95 kB / 0.5876 GB, free: 21.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002942/0.4662, allocations: 28.02 kB / 0.5876 GB, free: 21.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.4663, allocations: 37.47 kB / 0.5876 GB, free: 21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.4663, allocations: 10.66 kB / 0.5876 GB, free: 21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003628/0.4667, allocations: 308.4 kB / 0.5879 GB, free: 20.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4667, allocations: 0 / 0.5879 GB, free: 20.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004995/0.4672, allocations: 145.9 kB / 0.5881 GB, free: 20.8 MB / 446.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.0001237/0.4674, allocations: 118.5 kB / 0.5882 GB, free: 20.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0009286/0.4683, allocations: 482.4 kB / 0.5887 GB, free: 20.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4683, allocations: 0.75 kB / 0.5887 GB, free: 20.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000418/0.4687, allocations: 216.8 kB / 0.5889 GB, free: 20.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007364/0.4695, allocations: 145 kB / 0.589 GB, free: 20.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.4721, allocations: 1.607 MB / 0.5906 GB, free: 19.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/0.4725, allocations: 0.8886 MB / 0.5914 GB, free: 18.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003078/0.4728, allocations: 62.14 kB / 0.5915 GB, free: 18.64 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.4729, allocations: 43.52 kB / 0.5915 GB, free: 18.63 MB / 446.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4729, allocations: 4 kB / 0.5915 GB, free: 18.62 MB / 446.1 MB Notification: Performance of Templates: time 0.01346/0.4864, allocations: 5.58 MB / 0.597 GB, free: 18.27 MB / 446.1 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)