Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.001054/0.001054, allocations: 104.7 kB / 16.41 MB, free: 6.484 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.0009842/0.0009842, allocations: 193.5 kB / 17.34 MB, free: 5.766 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.234/1.234, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7415/0.7415, allocations: 135.1 MB / 426.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 65.48 kB / 0.5862 GB, free: 21.56 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1564, allocations: 80.93 MB / 0.6653 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005351/0.1618, allocations: 4.094 MB / 0.6693 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00265/0.1645, allocations: 1.328 MB / 0.6706 GB, free: 408 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006286/0.1652, allocations: 23.88 kB / 0.6706 GB, free: 384 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004359/0.1656, allocations: 122.8 kB / 0.6707 GB, free: 260 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005721/0.1662, allocations: 178.4 kB / 0.6709 GB, free: 80 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.1673, allocations: 418.9 kB / 0.6713 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00114/0.1684, allocations: 0.9593 MB / 0.6722 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006385/0.1691, allocations: 462.1 kB / 0.6726 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004177/0.1695, allocations: 330.7 kB / 0.673 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003244/0.1698, allocations: 334.3 kB / 0.6733 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.1699, allocations: 96 kB / 0.6734 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.1701, allocations: 88 kB / 0.6735 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.1702, allocations: 179.3 kB / 0.6736 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003004/0.1705, allocations: 398.1 kB / 0.674 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0008812/0.1714, allocations: 1.059 MB / 0.675 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1714, allocations: 0 / 0.675 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1714, allocations: 0 / 0.675 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.087e-06/0.1714, allocations: 0 / 0.675 GB, free: 11.77 MB / 0.5137 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.001652/0.1731, allocations: 1.077 MB / 0.6761 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.1731, allocations: 9.109 kB / 0.6761 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.1733, allocations: 91.91 kB / 0.6762 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008028/0.1741, allocations: 0.5689 MB / 0.6767 GB, free: 9.93 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/0.1741, allocations: 41.69 kB / 0.6768 GB, free: 9.891 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.407e-05/0.1742, allocations: 64.36 kB / 0.6768 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000998/0.1752, allocations: 0.6078 MB / 0.6774 GB, free: 9.195 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.1752, allocations: 4 kB / 0.6774 GB, free: 9.191 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.859e-05/0.1753, allocations: 20 kB / 0.6775 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.1753, allocations: 16 kB / 0.6775 GB, free: 9.156 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009051/0.1762, allocations: 461 kB / 0.6779 GB, free: 8.703 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.1788, allocations: 1.989 MB / 0.6799 GB, free: 6.641 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008189/0.1796, allocations: 446.2 kB / 0.6803 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004028/0.18, allocations: 239.4 kB / 0.6805 GB, free: 5.965 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.946e-05/0.1801, allocations: 8.438 kB / 0.6805 GB, free: 5.957 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004884/0.1806, allocations: 265.2 kB / 0.6808 GB, free: 5.684 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.1806, allocations: 0 / 0.6808 GB, free: 5.684 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.00116/0.1817, allocations: 0.5844 MB / 0.6813 GB, free: 5.098 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.1818, allocations: 55.84 kB / 0.6814 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004277/0.1822, allocations: 442 kB / 0.6818 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.1823, allocations: 49.62 kB / 0.6819 GB, free: 4.531 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.1825, allocations: 324.3 kB / 0.6822 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.1826, allocations: 165.6 kB / 0.6823 GB, free: 4.047 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.1827, allocations: 94.16 kB / 0.6824 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1829, allocations: 362.8 kB / 0.6828 GB, free: 3.586 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000351/0.1832, allocations: 165 kB / 0.6829 GB, free: 3.426 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003963/0.1836, allocations: 253.8 kB / 0.6832 GB, free: 3.148 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007283/0.1844, allocations: 448 kB / 0.6836 GB, free: 2.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1844, allocations: 0 / 0.6836 GB, free: 2.68 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009239/0.1853, allocations: 0.5585 MB / 0.6841 GB, free: 2.109 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.981e-05/0.1854, allocations: 45.58 kB / 0.6842 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1854, allocations: 0 / 0.6842 GB, free: 2.059 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.1854, allocations: 8.25 kB / 0.6842 GB, free: 2.051 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004479/0.1859, allocations: 115.8 kB / 0.6843 GB, free: 1.938 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.1859, allocations: 4 kB / 0.6843 GB, free: 1.934 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002891/0.1862, allocations: 63.44 kB / 0.6844 GB, free: 1.871 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.429e-05/0.1862, allocations: 16 kB / 0.6844 GB, free: 1.855 MB / 0.5137 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.0002216/0.1864, allocations: 207.8 kB / 0.6846 GB, free: 1.645 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.835e-05/0.1865, allocations: 63.27 kB / 0.6846 GB, free: 1.582 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.1866, allocations: 65.59 kB / 0.6847 GB, free: 1.52 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.1867, allocations: 4 kB / 0.6847 GB, free: 1.516 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.1867, allocations: 4 kB / 0.6847 GB, free: 1.512 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.1867, allocations: 3.984 kB / 0.6847 GB, free: 1.508 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001549/0.1882, allocations: 1.178 MB / 0.6859 GB, free: 276 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1882, allocations: 0 / 0.6859 GB, free: 276 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004304/0.1887, allocations: 99.88 kB / 0.686 GB, free: 176 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1887, allocations: 0 / 0.686 GB, free: 176 kB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/0.1887, allocations: 16 kB / 0.686 GB, free: 160 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.1887, allocations: 4 kB / 0.686 GB, free: 156 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1887, allocations: 0 / 0.686 GB, free: 156 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.19, allocations: 0.7612 MB / 0.6867 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/0.1901, allocations: 168.3 kB / 0.6869 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.777e-05/0.1902, allocations: 12 kB / 0.6869 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/0.1904, allocations: 23.97 kB / 0.6869 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.662e-05/0.1905, allocations: 36.38 kB / 0.687 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.1906, allocations: 19.98 kB / 0.687 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003118/0.1909, allocations: 310.9 kB / 0.6873 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1909, allocations: 0 / 0.6873 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004003/0.1913, allocations: 143.4 kB / 0.6874 GB, free: 14.66 MB / 0.5294 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 0.0001323/0.1914, allocations: 109.9 kB / 0.6875 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0008419/0.1923, allocations: 489.5 kB / 0.688 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1923, allocations: 0 / 0.688 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003738/0.1927, allocations: 214.4 kB / 0.6882 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00069/0.1934, allocations: 163.1 kB / 0.6883 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002345/0.1957, allocations: 1.363 MB / 0.6897 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.1961, allocations: 0.8899 MB / 0.6905 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.1963, allocations: 43.44 kB / 0.6906 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of SimCode: time 5.21e-07/0.1963, allocations: 0 / 0.6906 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of Templates: time 0.009527/0.2058, allocations: 7.6 MB / 0.698 GB, free: 3.766 MB / 0.5294 GB make -j1 -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & ./IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)