Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 77.86 kB / 19.76 MB, free: 2.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 155.9 kB / 23.01 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.455/1.455, allocations: 177.2 MB / 203.4 MB, free: 8.949 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06294/0.06294, allocations: 8.612 MB / 268.4 MB, free: 8.516 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 71.89 kB / 396.1 MB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.137, allocations: 56.05 MB / 452.1 MB, free: 15.77 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.0049/0.1419, allocations: 2.388 MB / 454.5 MB, free: 13.36 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.1438, allocations: 0.7305 MB / 455.2 MB, free: 12.62 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002727/0.1441, allocations: 31.69 kB / 455.3 MB, free: 12.59 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003204/0.1444, allocations: 95.05 kB / 455.4 MB, free: 12.5 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001519/0.1445, allocations: 47.44 kB / 455.4 MB, free: 12.45 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.1458, allocations: 415.2 kB / 455.8 MB, free: 12.05 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.147, allocations: 0.8206 MB / 456.6 MB, free: 11.22 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.1472, allocations: 77.92 kB / 456.7 MB, free: 11.14 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004495/0.1477, allocations: 263 kB / 457 MB, free: 10.89 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004761/0.1481, allocations: 246.7 kB / 457.2 MB, free: 10.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.239e-05/0.1482, allocations: 40 kB / 457.2 MB, free: 10.61 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.1484, allocations: 63.97 kB / 457.3 MB, free: 10.54 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000218/0.1486, allocations: 167.4 kB / 457.5 MB, free: 10.38 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002536/0.1488, allocations: 194.7 kB / 457.7 MB, free: 10.19 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008566/0.1497, allocations: 0.5287 MB / 458.2 MB, free: 9.656 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.1497, allocations: 4 kB / 458.2 MB, free: 9.652 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.466e-06/0.1497, allocations: 4 kB / 458.2 MB, free: 9.648 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.1497, allocations: 3.938 kB / 458.2 MB, free: 9.645 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001657/0.1514, allocations: 0.8425 MB / 459 MB, free: 8.766 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.1514, allocations: 12.03 kB / 459.1 MB, free: 8.754 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.1515, allocations: 72.5 kB / 459.1 MB, free: 8.684 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007702/0.1523, allocations: 422.7 kB / 459.5 MB, free: 8.242 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.147e-05/0.1524, allocations: 41.36 kB / 459.6 MB, free: 8.203 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.814e-05/0.1525, allocations: 52.38 kB / 459.6 MB, free: 8.152 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.1536, allocations: 0.6118 MB / 460.2 MB, free: 7.484 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.218e-05/0.1537, allocations: 12.12 kB / 460.3 MB, free: 7.473 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.98e-05/0.1537, allocations: 27.92 kB / 460.3 MB, free: 7.445 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.096e-05/0.1537, allocations: 16 kB / 460.3 MB, free: 7.43 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007154/0.1545, allocations: 367.5 kB / 460.7 MB, free: 7.07 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00347/0.1579, allocations: 2.487 MB / 463.1 MB, free: 4.469 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006218/0.1586, allocations: 251.4 kB / 463.4 MB, free: 4.215 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.1588, allocations: 101.3 kB / 463.5 MB, free: 4.113 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.1588, allocations: 240 / 463.5 MB, free: 4.113 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004806/0.1593, allocations: 207.4 kB / 463.7 MB, free: 3.898 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 1.764e-06/0.1593, allocations: 0 / 463.7 MB, free: 3.898 MB / 430.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009837/0.1603, allocations: 481 kB / 464.2 MB, free: 3.422 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.1603, allocations: 67.39 kB / 464.2 MB, free: 3.344 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006271/0.161, allocations: 0.5141 MB / 464.7 MB, free: 2.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.459e-05/0.161, allocations: 41.7 kB / 464.8 MB, free: 2.773 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003066/0.1613, allocations: 367.7 kB / 465.1 MB, free: 2.406 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.1614, allocations: 107.2 kB / 465.2 MB, free: 2.301 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.1616, allocations: 134.2 kB / 465.4 MB, free: 2.164 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.1618, allocations: 370.8 kB / 465.7 MB, free: 1.793 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000248/0.162, allocations: 129.5 kB / 465.9 MB, free: 1.664 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005832/0.1626, allocations: 496.3 kB / 466.4 MB, free: 1.004 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/0.1645, allocations: 0.9255 MB / 467.3 MB, free: 15.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.1645, allocations: 4 kB / 467.3 MB, free: 15.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001199/0.1657, allocations: 0.7158 MB / 468 MB, free: 15.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.1657, allocations: 12 kB / 468 MB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/0.1657, allocations: 12 kB / 468 MB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.545e-05/0.1658, allocations: 23.94 kB / 468 MB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004509/0.1662, allocations: 143.7 kB / 468.2 MB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.869e-05/0.1662, allocations: 27.86 kB / 468.2 MB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003307/0.1666, allocations: 79.86 kB / 468.3 MB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.208e-05/0.1666, allocations: 44 kB / 468.3 MB, free: 14.84 MB / 446.1 MB Warning: Assuming fixed start value for the following 17 variables: R.cs:DISCRETE(fixed = true ) \"Pre-biased Control Signal\" type: Real R.satin:DISCRETE(fixed = true ) \"input of the saturation block\" type: Real R_outer.CS:DISCRETE(flow=false fixed = true ) \"Control signal\" type: Real R_outer.cs:DISCRETE(fixed = true ) \"Pre-biased Control Signal\" type: Real R_outer.satin:DISCRETE(fixed = true ) \"input of the saturation block\" type: Real R_inner.cs:DISCRETE(fixed = true ) \"Pre-biased Control Signal\" type: Real R_inner.satin:DISCRETE(fixed = true ) \"input of the saturation block\" type: Real P_outer.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real P_outer.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P_outer.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] P2.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real P2.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P2.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] R_inner.CS:DISCRETE(flow=false fixed = true ) \"Control signal\" type: Real P_inner.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real R.CS:DISCRETE(flow=false fixed = true ) \"Control signal\" type: Real P1.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 38 (R.FBout,$PRE.R.FBout,$PRE.R.cs,R.cs,$PRE.R.satin,R.satin,$PRE.R_outer.CS,R_outer.CS,R_outer.FBout,$PRE.R_outer.FBout,$PRE.R_outer.cs,R_outer.cs,$PRE.R_outer.satin,R_outer.satin,R_inner.FBout,$PRE.R_inner.FBout,$PRE.R_inner.cs,R_inner.cs,$PRE.R_inner.satin,R_inner.satin,$whenCondition2,$whenCondition1,$PRE.R_inner.CS,$PRE.R.CS,R_inner.CS,R.CS,R_inner.TS_in,R_outer.TS_in,R.TS_in,R_inner.satLOW_in,R_inner.satHIGH_in,R_inner.ATreq_in,R_outer.satLOW_in,R_outer.satHIGH_in,R_outer.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * 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.0004292/0.167, allocations: 268 kB / 468.6 MB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.103e-05/0.1671, allocations: 55.61 kB / 468.6 MB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001198/0.1672, allocations: 61.23 kB / 468.7 MB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.1673, allocations: 0 / 468.7 MB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.1673, allocations: 8 kB / 468.7 MB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.1673, allocations: 3.984 kB / 468.7 MB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004686/0.1677, allocations: 333 kB / 469 MB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1677, allocations: 0 / 469 MB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002906/0.168, allocations: 51.97 kB / 469.1 MB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.168, allocations: 0 / 469.1 MB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.1681, allocations: 11.98 kB / 469.1 MB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/0.1681, allocations: 7.938 kB / 469.1 MB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1681, allocations: 0 / 469.1 MB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.1692, allocations: 0.5598 MB / 469.7 MB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.476e-05/0.1693, allocations: 51.56 kB / 469.7 MB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.527e-05/0.1693, allocations: 19.92 kB / 469.7 MB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.1695, allocations: 11.98 kB / 469.8 MB, free: 13.35 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.223e-05/0.1695, allocations: 15.97 kB / 469.8 MB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.1696, allocations: 15.98 kB / 469.8 MB, free: 13.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003813/0.1699, allocations: 318.9 kB / 470.1 MB, free: 13.01 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1699, allocations: 0 / 470.1 MB, free: 13.01 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005232/0.1705, allocations: 115.7 kB / 470.2 MB, free: 12.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (P1.w,P2.Y[3],P2.U[2],P2.w,P_inner.w,P_outer.Y[3],P_outer.U[2],P_outer.w) * Number of discrete variables: 14 ($whenCondition2,$whenCondition1,R.CS,R.FBout,R.cs,R.satin,R_outer.CS,R_outer.FBout,R_outer.cs,R_outer.satin,R_inner.CS,R_inner.FBout,R_inner.cs,R_inner.satin) * Number of discrete states: 6 (R_inner.FBout,R_inner.cs,R_outer.FBout,R_outer.cs,R.FBout,R.cs) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.0001935/0.1707, allocations: 127.1 kB / 470.3 MB, free: 12.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008705/0.1715, allocations: 413.4 kB / 470.7 MB, free: 12.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1715, allocations: 4 kB / 470.7 MB, free: 12.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002486/0.1718, allocations: 127.9 kB / 470.9 MB, free: 12.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.1721, allocations: 61.16 kB / 470.9 MB, free: 12.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.1739, allocations: 0.975 MB / 471.9 MB, free: 11.17 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.1742, allocations: 294.6 kB / 472.2 MB, free: 10.85 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000233/0.1744, allocations: 92.62 kB / 472.3 MB, free: 10.76 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.872e-05/0.1745, allocations: 36.5 kB / 472.3 MB, free: 10.73 MB / 446.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1745, allocations: 0 / 472.3 MB, free: 10.73 MB / 446.1 MB Notification: Performance of Templates: time 0.009582/0.1841, allocations: 3.31 MB / 475.6 MB, free: 7.477 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.sim & ./IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.305582895991392] Failed to read output from testmodel.py, exit status != 0: 0.19359686691313982 0.42593695400000003 0.27312763 Calling exit ...