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.0007483/0.0007483, allocations: 76.55 kB / 19.93 MB, free: 4.637 MB / 18.57 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.000807/0.000807, allocations: 177.9 kB / 23.22 MB, free: 1.352 MB / 18.57 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 0.9074/0.9074, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.03282/0.03282, allocations: 8.611 MB / 268.6 MB, free: 5.125 MB / 250.7 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: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 3.938 kB / 396.3 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.732e-05/2.942e-05, allocations: 2.281 kB / 396.3 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.002432/0.002461, allocations: 2.392 MB / 398.7 MB, free: 14.58 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009782/0.003439, allocations: 0.7342 MB / 399.4 MB, free: 13.85 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.003596, allocations: 35.62 kB / 399.5 MB, free: 13.81 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000482/0.004078, allocations: 98.98 kB / 399.6 MB, free: 13.71 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 9.382e-05/0.004171, allocations: 51.42 kB / 399.6 MB, free: 13.66 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000684/0.004855, allocations: 455 kB / 400.1 MB, free: 13.22 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005144/0.00537, allocations: 0.6876 MB / 400.8 MB, free: 12.53 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.005542, allocations: 69.92 kB / 400.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000218/0.00576, allocations: 307.2 kB / 401.1 MB, free: 12.16 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.005955, allocations: 203.3 kB / 401.3 MB, free: 11.96 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.569e-05/0.006001, allocations: 40 kB / 401.4 MB, free: 11.92 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.244e-05/0.006083, allocations: 59.98 kB / 401.4 MB, free: 11.86 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.006195, allocations: 171.4 kB / 401.6 MB, free: 11.7 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.006295, allocations: 143.5 kB / 401.7 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003918/0.006687, allocations: 0.5294 MB / 402.3 MB, free: 11.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.00669, allocations: 0 / 402.3 MB, free: 11.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.006691, allocations: 3.938 kB / 402.3 MB, free: 11.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.006697, allocations: 0 / 402.3 MB, free: 11.02 MB / 330.7 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.00099/0.007687, allocations: 0.8383 MB / 403.1 MB, free: 10.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.00772, allocations: 12.02 kB / 403.1 MB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.461e-05/0.007805, allocations: 72.47 kB / 403.2 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.008257, allocations: 433.9 kB / 403.6 MB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.008286, allocations: 37.38 kB / 403.6 MB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.478e-05/0.008341, allocations: 52.38 kB / 403.7 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005656/0.008906, allocations: 0.6079 MB / 404.3 MB, free: 8.855 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.008925, allocations: 4.125 kB / 404.3 MB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.13e-05/0.008957, allocations: 28.36 kB / 404.3 MB, free: 8.824 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.008969, allocations: 12.38 kB / 404.3 MB, free: 8.812 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004096/0.009378, allocations: 375.5 kB / 404.7 MB, free: 8.449 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.01108, allocations: 2.476 MB / 407.2 MB, free: 5.852 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003746/0.01146, allocations: 251.3 kB / 407.4 MB, free: 5.598 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.01157, allocations: 109.2 kB / 407.5 MB, free: 5.488 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.425e-05/0.01159, allocations: 4.234 kB / 407.5 MB, free: 5.484 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.01181, allocations: 203.9 kB / 407.7 MB, free: 5.273 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 1.373e-06/0.01181, allocations: 0 / 407.7 MB, free: 5.273 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.0005503/0.01236, allocations: 481.1 kB / 408.2 MB, free: 4.797 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.0124, allocations: 63.41 kB / 408.3 MB, free: 4.723 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003359/0.01273, allocations: 0.518 MB / 408.8 MB, free: 4.195 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.01276, allocations: 41.69 kB / 408.8 MB, free: 4.148 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000174/0.01293, allocations: 363.7 kB / 409.2 MB, free: 3.789 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.469e-05/0.01299, allocations: 111.2 kB / 409.3 MB, free: 3.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.742e-05/0.01308, allocations: 130.3 kB / 409.4 MB, free: 3.547 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.0132, allocations: 366.8 kB / 409.8 MB, free: 3.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.01335, allocations: 129.6 kB / 409.9 MB, free: 3.055 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003513/0.0137, allocations: 0.4924 MB / 410.4 MB, free: 2.387 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009472/0.01465, allocations: 0.9185 MB / 411.3 MB, free: 1.289 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.01465, allocations: 4 kB / 411.3 MB, free: 1.285 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.000719/0.01537, allocations: 0.7077 MB / 412 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.0154, allocations: 8.938 kB / 412 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.01541, allocations: 16 kB / 412.1 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.01543, allocations: 16 kB / 412.1 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002354/0.01567, allocations: 155.6 kB / 412.2 MB, free: 388 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.01568, allocations: 23.88 kB / 412.2 MB, free: 364 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001694/0.01585, allocations: 91.39 kB / 412.3 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.01588, allocations: 36 kB / 412.4 MB, free: 236 kB / 330.7 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.1579/0.1738, allocations: 266.4 kB / 412.6 MB, free: 28.24 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.1739, allocations: 53.08 kB / 412.7 MB, free: 28.24 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.174, allocations: 53.34 kB / 412.7 MB, free: 28.23 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.174, allocations: 3.156 kB / 412.7 MB, free: 28.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.174, allocations: 4.359 kB / 412.7 MB, free: 28.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.174, allocations: 4.484 kB / 412.7 MB, free: 28.23 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003449/0.1743, allocations: 338.9 kB / 413.1 MB, free: 28.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1744, allocations: 1.094 kB / 413.1 MB, free: 28.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002122/0.1746, allocations: 49.06 kB / 413.1 MB, free: 28.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.1746, allocations: 2.188 kB / 413.1 MB, free: 28.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.1746, allocations: 12.39 kB / 413.1 MB, free: 28.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1746, allocations: 3.109 kB / 413.1 MB, free: 28.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1746, allocations: 2.875 kB / 413.1 MB, free: 28.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006469/0.1752, allocations: 0.5555 MB / 413.7 MB, free: 28.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.741e-05/0.1753, allocations: 52.72 kB / 413.8 MB, free: 28.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.45e-05/0.1753, allocations: 11.98 kB / 413.8 MB, free: 28.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.844e-05/0.1754, allocations: 15.27 kB / 413.8 MB, free: 28.04 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.1755, allocations: 18.59 kB / 413.8 MB, free: 28.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.1755, allocations: 14.95 kB / 413.8 MB, free: 28.04 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002583/0.1757, allocations: 327.4 kB / 414.1 MB, free: 27.95 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1757, allocations: 0 / 414.1 MB, free: 27.95 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003929/0.1761, allocations: 110.8 kB / 414.2 MB, free: 27.95 MB / 330.7 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.000157/0.1763, allocations: 131.8 kB / 414.4 MB, free: 27.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005242/0.1768, allocations: 417.1 kB / 414.8 MB, free: 27.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1768, allocations: 0 / 414.8 MB, free: 27.79 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001535/0.177, allocations: 130 kB / 414.9 MB, free: 27.76 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002452/0.1772, allocations: 62.05 kB / 415 MB, free: 27.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.1783, allocations: 0.9792 MB / 415.9 MB, free: 27.18 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.1785, allocations: 300.5 kB / 416.2 MB, free: 27.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.666e-05/0.1785, allocations: 44.05 kB / 416.3 MB, free: 27.06 MB / 330.7 MB Notification: Performance of SimCode: time 8.81e-07/0.1785, allocations: 0 / 416.3 MB, free: 27.06 MB / 330.7 MB Notification: Performance of Templates: time 0.008371/0.1869, allocations: 6.349 MB / 422.6 MB, free: 26.04 MB / 330.7 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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.939869708381593] Failed to read output from testmodel.py, exit status != 0: 0.19335677567869425 0.200218065 0.192234666 Calling exit ...