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.001482/0.001482, allocations: 79.2 kB / 19.18 MB, free: 2.516 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.001599/0.001599, allocations: 163.8 kB / 22.46 MB, free: 5.375 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.5/1.5, allocations: 177.2 MB / 202.8 MB, free: 9.164 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.06119/0.06119, allocations: 8.613 MB / 267.8 MB, free: 8.559 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: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 395.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.926e-05/4.116e-05, allocations: 2.281 kB / 395.6 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.004208/0.004249, allocations: 2.393 MB / 398 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.00582, allocations: 0.7342 MB / 398.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002163/0.006036, allocations: 27.69 kB / 398.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002891/0.006325, allocations: 91 kB / 398.8 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.00648, allocations: 55.36 kB / 398.9 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.007633, allocations: 467 kB / 399.3 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008827/0.008516, allocations: 0.672 MB / 400 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.008735, allocations: 73.91 kB / 400.1 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004781/0.009213, allocations: 311.3 kB / 400.4 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003247/0.009538, allocations: 203.3 kB / 400.6 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.794e-05/0.009625, allocations: 39.94 kB / 400.6 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001563/0.009782, allocations: 67.97 kB / 400.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002344/0.01002, allocations: 163.4 kB / 400.8 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001878/0.0102, allocations: 147.4 kB / 401 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007288/0.01093, allocations: 0.5294 MB / 401.5 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.01094, allocations: 0 / 401.5 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.01094, allocations: 0 / 401.5 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.01095, allocations: 0 / 401.5 MB, free: 0.7109 MB / 318.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.001994/0.01294, allocations: 0.8424 MB / 402.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.013, allocations: 12.03 kB / 402.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.01315, allocations: 76.45 kB / 402.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008342/0.01398, allocations: 414.1 kB / 402.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.24e-05/0.01404, allocations: 45.36 kB / 402.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.01414, allocations: 52.33 kB / 402.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.01523, allocations: 0.6078 MB / 403.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.336e-05/0.01526, allocations: 8.125 kB / 403.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-05/0.01531, allocations: 24.36 kB / 403.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.071e-05/0.01533, allocations: 20.12 kB / 403.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006917/0.01603, allocations: 367.6 kB / 403.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003344/0.01937, allocations: 2.483 MB / 406.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006207/0.01999, allocations: 247.4 kB / 406.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.02021, allocations: 102.2 kB / 406.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.02023, allocations: 4.234 kB / 406.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003965/0.02062, allocations: 200 kB / 407 MB, free: 10.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.904e-06/0.02062, allocations: 4 kB / 407 MB, free: 10.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009911/0.02162, allocations: 485 kB / 407.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.801e-05/0.02169, allocations: 67.39 kB / 407.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006637/0.02236, allocations: 0.518 MB / 408 MB, free: 9.887 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.121e-05/0.0224, allocations: 37.7 kB / 408.1 MB, free: 9.844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003565/0.02275, allocations: 363.7 kB / 408.4 MB, free: 9.484 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.02288, allocations: 115.1 kB / 408.5 MB, free: 9.371 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.02304, allocations: 126.3 kB / 408.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002344/0.02328, allocations: 374.8 kB / 409 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002398/0.02352, allocations: 121.6 kB / 409.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006118/0.02413, allocations: 0.4885 MB / 409.6 MB, free: 8.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001685/0.02581, allocations: 0.9331 MB / 410.6 MB, free: 6.977 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.02582, allocations: 4 kB / 410.6 MB, free: 6.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001176/0.027, allocations: 0.7083 MB / 411.3 MB, free: 6.258 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.02702, allocations: 12.22 kB / 411.3 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.02704, allocations: 16 kB / 411.3 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.687e-05/0.02708, allocations: 20 kB / 411.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004689/0.02755, allocations: 147.6 kB / 411.5 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.873e-05/0.02758, allocations: 27.86 kB / 411.5 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003117/0.02789, allocations: 87.39 kB / 411.6 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-05/0.02795, allocations: 40 kB / 411.6 MB, free: 5.914 MB / 334.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.0003955/0.02834, allocations: 264.8 kB / 411.9 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.657e-05/0.02842, allocations: 59.61 kB / 411.9 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001117/0.02853, allocations: 53.28 kB / 412 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.02854, allocations: 4 kB / 412 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.02855, allocations: 3.938 kB / 412 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.02855, allocations: 0 / 412 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004505/0.029, allocations: 341 kB / 412.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.02901, allocations: 3.984 kB / 412.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.02929, allocations: 47.97 kB / 412.4 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.02929, allocations: 7.938 kB / 412.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.335e-05/0.02933, allocations: 15.92 kB / 412.4 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.02933, allocations: 4 kB / 412.4 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.02933, allocations: 0 / 412.4 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.03036, allocations: 0.5441 MB / 413 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.818e-05/0.03043, allocations: 55.59 kB / 413 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.588e-05/0.0305, allocations: 12 kB / 413 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.03064, allocations: 11.98 kB / 413 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.529e-05/0.03071, allocations: 23.91 kB / 413.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/0.03074, allocations: 15.98 kB / 413.1 MB, free: 4.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003834/0.03112, allocations: 322.8 kB / 413.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.03112, allocations: 0 / 413.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005024/0.03163, allocations: 107.8 kB / 413.5 MB, free: 3.984 MB / 334.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.0002458/0.03187, allocations: 131 kB / 413.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007679/0.03264, allocations: 422.8 kB / 414 MB, free: 3.434 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.03264, allocations: 4.062 kB / 414 MB, free: 3.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.0329, allocations: 127.8 kB / 414.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.03327, allocations: 60.83 kB / 414.2 MB, free: 3.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.03486, allocations: 0.9266 MB / 415.1 MB, free: 2.293 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.0352, allocations: 298.6 kB / 415.4 MB, free: 1.973 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002355/0.03544, allocations: 100.5 kB / 415.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.275e-05/0.03552, allocations: 36.5 kB / 415.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.03552, allocations: 0 / 415.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of Templates: time 0.009357/0.04488, allocations: 3.301 MB / 418.9 MB, free: 14.59 MB / 350.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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.779383063316345] Failed to read output from testmodel.py, exit status != 0: 0.054107051342725754 0.069696546 0.055601388 Calling exit ...