Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/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.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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.001216/0.001216, allocations: 182.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.7276/0.7276, allocations: 132.2 MB / 148.9 MB, free: 12.16 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.505/1.505, allocations: 222.9 MB / 403.4 MB, free: 7.113 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.001021/0.001021, allocations: 109.3 kB / 484.3 MB, free: 8.738 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 55.91 kB / 0.5618 GB, free: 71.09 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1724, allocations: 80.2 MB / 0.6402 GB, free: 6.812 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.006164/0.1787, allocations: 4.101 MB / 0.6442 GB, free: 2.684 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002606/0.1813, allocations: 1.297 MB / 0.6454 GB, free: 1.379 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004347/0.1818, allocations: 23.88 kB / 0.6455 GB, free: 1.355 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003362/0.1821, allocations: 95.22 kB / 0.6455 GB, free: 1.262 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003557/0.1825, allocations: 146.8 kB / 0.6457 GB, free: 1.117 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000919/0.1835, allocations: 382 kB / 0.646 GB, free: 0.75 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009343/0.1844, allocations: 0.8967 MB / 0.6469 GB, free: 15.85 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006691/0.1851, allocations: 430.1 kB / 0.6473 GB, free: 15.4 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003335/0.1854, allocations: 274.7 kB / 0.6476 GB, free: 15.13 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003543/0.1858, allocations: 302.4 kB / 0.6479 GB, free: 14.84 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 9.035e-05/0.1859, allocations: 40 kB / 0.6479 GB, free: 14.8 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.683e-05/0.186, allocations: 40 kB / 0.648 GB, free: 14.75 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.1861, allocations: 135.4 kB / 0.6481 GB, free: 14.62 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003445/0.1865, allocations: 342.1 kB / 0.6484 GB, free: 14.29 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009351/0.1874, allocations: 0.9969 MB / 0.6494 GB, free: 13.29 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1875, allocations: 0 / 0.6494 GB, free: 13.29 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1875, allocations: 4 kB / 0.6494 GB, free: 13.28 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.1875, allocations: 3.938 kB / 0.6494 GB, free: 13.28 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001827/0.1893, allocations: 1.073 MB / 0.6504 GB, free: 12.15 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.1894, allocations: 8.031 kB / 0.6505 GB, free: 12.14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001447/0.1895, allocations: 87.91 kB / 0.6505 GB, free: 12.05 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007785/0.1903, allocations: 0.5533 MB / 0.6511 GB, free: 11.46 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.949e-05/0.1904, allocations: 45.69 kB / 0.6511 GB, free: 11.41 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.587e-05/0.1904, allocations: 64.36 kB / 0.6512 GB, free: 11.35 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009999/0.1915, allocations: 0.6078 MB / 0.6518 GB, free: 10.72 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.1915, allocations: 4 kB / 0.6518 GB, free: 10.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.446e-05/0.1915, allocations: 28 kB / 0.6518 GB, free: 10.69 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.1916, allocations: 16 kB / 0.6518 GB, free: 10.67 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009173/0.1925, allocations: 457 kB / 0.6523 GB, free: 10.22 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002706/0.1952, allocations: 2.008 MB / 0.6542 GB, free: 8.145 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008714/0.1961, allocations: 445 kB / 0.6546 GB, free: 7.703 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004264/0.1965, allocations: 242.1 kB / 0.6549 GB, free: 7.465 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.187e-05/0.1966, allocations: 8.375 kB / 0.6549 GB, free: 7.457 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005836/0.1972, allocations: 261.3 kB / 0.6551 GB, free: 7.191 MB / 458.7 MB Notification: Performance of pre-optimization done (n=49): time 2.705e-06/0.1972, allocations: 0 / 0.6551 GB, free: 7.191 MB / 458.7 MB Notification: Performance of matching and sorting (n=49): time 0.00123/0.1984, allocations: 0.5773 MB / 0.6557 GB, free: 6.605 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.1985, allocations: 67.83 kB / 0.6558 GB, free: 6.527 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000518/0.199, allocations: 445.8 kB / 0.6562 GB, free: 6.082 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.76e-05/0.1991, allocations: 37.7 kB / 0.6562 GB, free: 6.039 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002166/0.1993, allocations: 324.3 kB / 0.6565 GB, free: 5.719 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.1994, allocations: 161.7 kB / 0.6567 GB, free: 5.559 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.1996, allocations: 98.14 kB / 0.6568 GB, free: 5.457 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1997, allocations: 366.8 kB / 0.6571 GB, free: 5.09 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.2001, allocations: 165 kB / 0.6573 GB, free: 4.926 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000404/0.2005, allocations: 249.8 kB / 0.6575 GB, free: 4.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007763/0.2013, allocations: 452 kB / 0.658 GB, free: 4.188 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2013, allocations: 0 / 0.658 GB, free: 4.188 MB / 458.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009825/0.2023, allocations: 0.5624 MB / 0.6585 GB, free: 3.609 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.546e-05/0.2023, allocations: 37.64 kB / 0.6585 GB, free: 3.566 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.2023, allocations: 0 / 0.6585 GB, free: 3.566 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.2024, allocations: 4 kB / 0.6585 GB, free: 3.562 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005134/0.2029, allocations: 115.8 kB / 0.6587 GB, free: 3.449 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.2029, allocations: 4 kB / 0.6587 GB, free: 3.445 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003558/0.2033, allocations: 71.69 kB / 0.6587 GB, free: 3.375 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4e-05/0.2033, allocations: 16 kB / 0.6587 GB, free: 3.359 MB / 458.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.0002523/0.2036, allocations: 215 kB / 0.6589 GB, free: 3.141 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.633e-05/0.2037, allocations: 59.28 kB / 0.659 GB, free: 3.082 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001429/0.2038, allocations: 65.53 kB / 0.6591 GB, free: 3.02 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2038, allocations: 8 kB / 0.6591 GB, free: 3.012 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.2038, allocations: 0 / 0.6591 GB, free: 3.012 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.2039, allocations: 7.984 kB / 0.6591 GB, free: 3.004 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001708/0.2056, allocations: 1.177 MB / 0.6602 GB, free: 1.766 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2056, allocations: 0 / 0.6602 GB, free: 1.766 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004569/0.206, allocations: 91.88 kB / 0.6603 GB, free: 1.676 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.2061, allocations: 4 kB / 0.6603 GB, free: 1.672 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.2061, allocations: 12 kB / 0.6603 GB, free: 1.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.2061, allocations: 4 kB / 0.6603 GB, free: 1.656 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2061, allocations: 0 / 0.6603 GB, free: 1.656 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006725/0.2128, allocations: 4.194 MB / 0.6644 GB, free: 13.31 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001675/0.2131, allocations: 176.2 kB / 0.6646 GB, free: 13.12 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.063e-05/0.2131, allocations: 12 kB / 0.6646 GB, free: 13.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002903/0.2134, allocations: 35.91 kB / 0.6646 GB, free: 13.07 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.2135, allocations: 36.33 kB / 0.6647 GB, free: 13.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/0.2136, allocations: 12 kB / 0.6647 GB, free: 13.03 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003187/0.2139, allocations: 310.9 kB / 0.665 GB, free: 12.73 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2139, allocations: 0 / 0.665 GB, free: 12.73 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0006286/0.2145, allocations: 195.5 kB / 0.6652 GB, free: 12.54 MB / 474.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.0001333/0.2147, allocations: 107.2 kB / 0.6653 GB, free: 12.42 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0009001/0.2156, allocations: 485 kB / 0.6657 GB, free: 11.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2156, allocations: 4 kB / 0.6657 GB, free: 11.93 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004076/0.216, allocations: 214.9 kB / 0.6659 GB, free: 11.72 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007582/0.2168, allocations: 148.9 kB / 0.6661 GB, free: 11.58 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002979/0.2198, allocations: 1.937 MB / 0.668 GB, free: 9.598 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.2202, allocations: 0.9096 MB / 0.6689 GB, free: 8.66 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0003383/0.2205, allocations: 72.58 kB / 0.6689 GB, free: 8.59 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.2207, allocations: 51.42 kB / 0.669 GB, free: 8.539 MB / 474.7 MB Notification: Performance of SimCode: time 8.71e-07/0.2207, allocations: 0 / 0.669 GB, free: 8.539 MB / 474.7 MB Notification: Performance of Templates: time 0.01222/0.2329, allocations: 6.941 MB / 0.6758 GB, free: 1.676 MB / 474.7 MB make -j1 -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & ./IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)