Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.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/IDEAS 3.0.0/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Continuous.Examples.LimPID") translateModel(IDEAS.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002122/0.002122, allocations: 183.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7442/0.7442, allocations: 132.2 MB / 148.9 MB, free: 12.12 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 222.9 MB / 403.3 MB, free: 7.117 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 106.9 kB / 484.4 MB, free: 8.715 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001022/0.001023, allocations: 51.92 kB / 0.5618 GB, free: 71.07 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1584, allocations: 80.21 MB / 0.6402 GB, free: 6.797 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.004841/0.1633, allocations: 3.707 MB / 0.6438 GB, free: 3.066 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002473/0.1658, allocations: 1.305 MB / 0.6451 GB, free: 1.754 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00035/0.1662, allocations: 23.88 kB / 0.6451 GB, free: 1.73 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003012/0.1665, allocations: 91.11 kB / 0.6452 GB, free: 1.641 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004657/0.167, allocations: 145 kB / 0.6453 GB, free: 1.5 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.1681, allocations: 0.5278 MB / 0.6458 GB, free: 0.9805 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008228/0.1689, allocations: 0.9057 MB / 0.6467 GB, free: 72 kB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005012/0.1694, allocations: 341.6 kB / 0.647 GB, free: 15.72 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003356/0.1698, allocations: 326.2 kB / 0.6473 GB, free: 15.4 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003088/0.1701, allocations: 330.1 kB / 0.6477 GB, free: 15.08 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 8.674e-05/0.1702, allocations: 40 kB / 0.6477 GB, free: 15.04 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.515e-05/0.1703, allocations: 43.94 kB / 0.6477 GB, free: 15 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.1704, allocations: 135.3 kB / 0.6479 GB, free: 14.86 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002529/0.1706, allocations: 341.7 kB / 0.6482 GB, free: 14.52 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006253/0.1713, allocations: 0.8098 MB / 0.649 GB, free: 13.71 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.1713, allocations: 4 kB / 0.649 GB, free: 13.71 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1713, allocations: 3.938 kB / 0.649 GB, free: 13.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.1713, allocations: 0 / 0.649 GB, free: 13.7 MB / 458.7 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.001958/0.1733, allocations: 1.183 MB / 0.6501 GB, free: 12.46 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1733, allocations: 8.031 kB / 0.6502 GB, free: 12.46 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.1735, allocations: 95.81 kB / 0.6502 GB, free: 12.36 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008697/0.1743, allocations: 0.5909 MB / 0.6508 GB, free: 11.73 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.1745, allocations: 105 kB / 0.6509 GB, free: 11.61 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.468e-05/0.1746, allocations: 56.28 kB / 0.651 GB, free: 11.56 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.1756, allocations: 0.5964 MB / 0.6516 GB, free: 10.92 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1757, allocations: 3.938 kB / 0.6516 GB, free: 10.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.274e-05/0.1757, allocations: 23.98 kB / 0.6516 GB, free: 10.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.1757, allocations: 16 kB / 0.6516 GB, free: 10.88 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009089/0.1766, allocations: 423.6 kB / 0.652 GB, free: 10.46 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002662/0.1793, allocations: 2.11 MB / 0.6541 GB, free: 8.27 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.1805, allocations: 0.4973 MB / 0.6546 GB, free: 7.762 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004676/0.181, allocations: 221.8 kB / 0.6548 GB, free: 7.543 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.582e-05/0.181, allocations: 8 kB / 0.6548 GB, free: 7.535 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007119/0.1818, allocations: 282.1 kB / 0.655 GB, free: 7.246 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 2.555e-06/0.1818, allocations: 3.938 kB / 0.655 GB, free: 7.242 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.001369/0.1831, allocations: 0.6063 MB / 0.6556 GB, free: 6.629 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.1832, allocations: 96.84 kB / 0.6557 GB, free: 6.516 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006664/0.1839, allocations: 0.6099 MB / 0.6563 GB, free: 5.895 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.1839, allocations: 33.7 kB / 0.6564 GB, free: 5.855 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002604/0.1842, allocations: 356.8 kB / 0.6567 GB, free: 5.504 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.1843, allocations: 157.7 kB / 0.6568 GB, free: 5.348 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.1845, allocations: 94.23 kB / 0.6569 GB, free: 5.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1846, allocations: 322 kB / 0.6572 GB, free: 4.93 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004348/0.185, allocations: 191 kB / 0.6574 GB, free: 4.738 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004613/0.1855, allocations: 276.2 kB / 0.6577 GB, free: 4.438 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008765/0.1864, allocations: 485.9 kB / 0.6582 GB, free: 3.926 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.1864, allocations: 3.938 kB / 0.6582 GB, free: 3.922 MB / 458.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001105/0.1875, allocations: 0.6022 MB / 0.6587 GB, free: 3.309 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.898e-05/0.1876, allocations: 33.7 kB / 0.6588 GB, free: 3.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.1876, allocations: 0 / 0.6588 GB, free: 3.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.1876, allocations: 11.94 kB / 0.6588 GB, free: 3.258 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/0.1881, allocations: 103.9 kB / 0.6589 GB, free: 3.156 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.1881, allocations: 7.938 kB / 0.6589 GB, free: 3.148 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003684/0.1885, allocations: 63.41 kB / 0.659 GB, free: 3.086 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.8e-05/0.1885, allocations: 24.19 kB / 0.659 GB, free: 3.062 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005525/0.1891, allocations: 309.2 kB / 0.6593 GB, free: 2.754 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004406/0.1895, allocations: 268.3 kB / 0.6595 GB, free: 2.453 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007789/0.1903, allocations: 449.9 kB / 0.66 GB, free: 1.977 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.833e-06/0.1903, allocations: 0 / 0.66 GB, free: 1.977 MB / 458.7 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001021/0.1914, allocations: 0.5787 MB / 0.6605 GB, free: 1.383 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.1914, allocations: 35.42 kB / 0.6606 GB, free: 1.344 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1914, allocations: 4.312 kB / 0.6606 GB, free: 1.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.061e-06/0.1914, allocations: 8 kB / 0.6606 GB, free: 1.332 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004343/0.1919, allocations: 103.8 kB / 0.6607 GB, free: 1.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.1919, allocations: 11.94 kB / 0.6607 GB, free: 1.219 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003343/0.1922, allocations: 47.66 kB / 0.6607 GB, free: 1.172 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.1923, allocations: 16 kB / 0.6607 GB, free: 1.156 MB / 458.7 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.0001734/0.1925, allocations: 222.1 kB / 0.661 GB, free: 0.9336 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.859e-05/0.1926, allocations: 75.06 kB / 0.661 GB, free: 0.8594 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001748/0.1927, allocations: 83.2 kB / 0.6611 GB, free: 0.7734 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1928, allocations: 7.984 kB / 0.6611 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.1928, allocations: 0 / 0.6611 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1928, allocations: 0 / 0.6611 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006486/0.1934, allocations: 0.6257 MB / 0.6617 GB, free: 92 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1934, allocations: 4 kB / 0.6617 GB, free: 88 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004284/0.1939, allocations: 75.89 kB / 0.6618 GB, free: 12 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1939, allocations: 0 / 0.6618 GB, free: 12 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.696e-05/0.1939, allocations: 16.08 kB / 0.6618 GB, free: 15.99 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.194, allocations: 7.938 kB / 0.6618 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.194, allocations: 3.984 kB / 0.6618 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00726/0.2012, allocations: 4.348 MB / 0.6661 GB, free: 11.49 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/0.2015, allocations: 192 kB / 0.6663 GB, free: 11.29 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.243e-05/0.2015, allocations: 11.94 kB / 0.6663 GB, free: 11.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003754/0.2019, allocations: 35.95 kB / 0.6663 GB, free: 11.24 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.755e-05/0.202, allocations: 35.95 kB / 0.6663 GB, free: 11.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.552e-05/0.2021, allocations: 15.98 kB / 0.6663 GB, free: 11.19 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004796/0.2026, allocations: 435 kB / 0.6668 GB, free: 10.77 MB / 474.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2026, allocations: 0 / 0.6668 GB, free: 10.77 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0009507/0.2035, allocations: 303.3 kB / 0.6671 GB, free: 10.47 MB / 474.7 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.0001537/0.2037, allocations: 113 kB / 0.6672 GB, free: 10.35 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.2052, allocations: 0.7893 MB / 0.6679 GB, free: 9.531 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.2052, allocations: 4.125 kB / 0.6679 GB, free: 9.527 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004444/0.2057, allocations: 219.6 kB / 0.6681 GB, free: 9.312 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009015/0.2066, allocations: 182.6 kB / 0.6683 GB, free: 9.137 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002367/0.209, allocations: 1.735 MB / 0.67 GB, free: 7.352 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/0.2094, allocations: 0.9263 MB / 0.6709 GB, free: 6.398 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.000423/0.2098, allocations: 97.25 kB / 0.671 GB, free: 6.301 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.21, allocations: 55.42 kB / 0.6711 GB, free: 6.246 MB / 474.7 MB Notification: Performance of SimCode: time 6.02e-07/0.21, allocations: 0 / 0.6711 GB, free: 6.246 MB / 474.7 MB Notification: Performance of Templates: time 0.01404/0.2241, allocations: 8.353 MB / 0.6792 GB, free: 13.97 MB / 490.7 MB make -j1 -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.makefile (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.sim & ./IDEAS_IDEAS.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)