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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 115.2 kB / 17.13 MB, free: 5.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001772/0.001772, allocations: 193.2 kB / 20.08 MB, free: 2.98 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 225.6 MB / 248.5 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06168/0.06168, allocations: 11.34 MB / 314.7 MB, free: 0.8008 MB / 238.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-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002179/0.002179, allocations: 60.09 kB / 438.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2568, allocations: 54.83 MB / 493.3 MB, free: 23.97 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003064/0.2598, allocations: 2.556 MB / 495.9 MB, free: 22.13 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.2612, allocations: 0.7433 MB / 496.6 MB, free: 21.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001844/0.2613, allocations: 21.44 kB / 496.7 MB, free: 21.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002356/0.2616, allocations: 97.41 kB / 496.7 MB, free: 21.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.2617, allocations: 43.55 kB / 496.8 MB, free: 21.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008087/0.2625, allocations: 382.7 kB / 497.2 MB, free: 21.31 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007486/0.2633, allocations: 0.7716 MB / 497.9 MB, free: 20.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.2634, allocations: 77.72 kB / 498 MB, free: 20.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002816/0.2637, allocations: 264.4 kB / 498.3 MB, free: 20.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003197/0.264, allocations: 264.2 kB / 498.5 MB, free: 20.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.837e-05/0.2641, allocations: 39.34 kB / 498.6 MB, free: 20.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001499/0.2643, allocations: 61.3 kB / 498.6 MB, free: 20.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.2644, allocations: 175.7 kB / 498.8 MB, free: 20.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001633/0.2646, allocations: 249.4 kB / 499 MB, free: 20.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004689/0.2651, allocations: 0.5284 MB / 499.6 MB, free: 20.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.2651, allocations: 3.938 kB / 499.6 MB, free: 20.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2651, allocations: 5.156 kB / 499.6 MB, free: 20 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.2651, allocations: 0 / 499.6 MB, free: 20 MB / 366.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.001345/0.2664, allocations: 0.9151 MB / 0.4888 GB, free: 19.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.2665, allocations: 9 kB / 0.4888 GB, free: 19.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.2666, allocations: 74.56 kB / 0.4888 GB, free: 19.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005529/0.2671, allocations: 499.8 kB / 0.4893 GB, free: 18.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.904e-05/0.2672, allocations: 37.89 kB / 0.4894 GB, free: 18.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.22e-05/0.2672, allocations: 55.09 kB / 0.4894 GB, free: 18.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007891/0.268, allocations: 0.6115 MB / 0.49 GB, free: 18.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.843e-05/0.2681, allocations: 3.406 kB / 0.49 GB, free: 18.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/0.2681, allocations: 29.89 kB / 0.49 GB, free: 18.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.2681, allocations: 12.88 kB / 0.49 GB, free: 18.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006059/0.2687, allocations: 368 kB / 0.4904 GB, free: 18.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002313/0.271, allocations: 2.684 MB / 0.493 GB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005313/0.2716, allocations: 244.8 kB / 0.4933 GB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.2718, allocations: 104.4 kB / 0.4934 GB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.2718, allocations: 3.578 kB / 0.4934 GB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003344/0.2721, allocations: 205.7 kB / 0.4936 GB, free: 15.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.374e-06/0.2721, allocations: 0 / 0.4936 GB, free: 15.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008516/0.273, allocations: 480.8 kB / 0.494 GB, free: 15.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.273, allocations: 70.08 kB / 0.4941 GB, free: 15.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004662/0.2735, allocations: 0.5391 MB / 0.4946 GB, free: 14.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.2735, allocations: 33.61 kB / 0.4946 GB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.2737, allocations: 358.3 kB / 0.495 GB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.824e-05/0.2737, allocations: 115 kB / 0.4951 GB, free: 14.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.2739, allocations: 136.6 kB / 0.4952 GB, free: 14.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.561e-05/0.2739, allocations: 378.3 kB / 0.4956 GB, free: 13.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.2742, allocations: 131.4 kB / 0.4957 GB, free: 13.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003261/0.2745, allocations: 497.1 kB / 0.4962 GB, free: 13.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001221/0.2757, allocations: 0.9188 MB / 0.4971 GB, free: 12.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.2757, allocations: 3.406 kB / 0.4971 GB, free: 12.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009984/0.2767, allocations: 0.7183 MB / 0.4978 GB, free: 12.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.2767, allocations: 16.53 kB / 0.4978 GB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.2767, allocations: 21 kB / 0.4978 GB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.289e-05/0.2768, allocations: 17.75 kB / 0.4978 GB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000424/0.2772, allocations: 147 kB / 0.498 GB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.265e-05/0.2772, allocations: 25.42 kB / 0.498 GB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000307/0.2775, allocations: 84.31 kB / 0.4981 GB, free: 12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.788e-05/0.2776, allocations: 38.06 kB / 0.4981 GB, free: 12 MB / 366.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.0003063/0.2779, allocations: 263.6 kB / 0.4984 GB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.574e-05/0.278, allocations: 63.61 kB / 0.4984 GB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.426e-05/0.278, allocations: 59.16 kB / 0.4985 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.278, allocations: 3.406 kB / 0.4985 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.2781, allocations: 1.125 kB / 0.4985 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2781, allocations: 0 / 0.4985 GB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003833/0.2784, allocations: 451.6 kB / 0.4989 GB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2784, allocations: 3.938 kB / 0.4989 GB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002814/0.2787, allocations: 53.97 kB / 0.499 GB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.2787, allocations: 5 kB / 0.499 GB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.002e-05/0.2788, allocations: 13.64 kB / 0.499 GB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2788, allocations: 1.281 kB / 0.499 GB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2788, allocations: 1.344 kB / 0.499 GB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008245/0.2796, allocations: 0.5661 MB / 0.4995 GB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.07e-05/0.2797, allocations: 131.5 kB / 0.4997 GB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.029e-05/0.2797, allocations: 14.27 kB / 0.4997 GB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.2799, allocations: 12.73 kB / 0.4997 GB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.064e-05/0.2799, allocations: 20.03 kB / 0.4997 GB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.28, allocations: 9 kB / 0.4997 GB, free: 10.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003111/0.2803, allocations: 349.5 kB / 0.5001 GB, free: 10.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2803, allocations: 0 / 0.5001 GB, free: 10.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004932/0.2808, allocations: 112.8 kB / 0.5002 GB, free: 10.59 MB / 366.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.0001476/0.2809, allocations: 125.7 kB / 0.5003 GB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006486/0.2816, allocations: 413.5 kB / 0.5007 GB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2816, allocations: 1.375 kB / 0.5007 GB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002181/0.2818, allocations: 123.5 kB / 0.5008 GB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003309/0.2821, allocations: 68.02 kB / 0.5009 GB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.2834, allocations: 1.028 MB / 0.5019 GB, free: 9.535 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.2836, allocations: 0.8855 MB / 0.5027 GB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.087e-05/0.2837, allocations: 41.44 kB / 0.5028 GB, free: 8.746 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2837, allocations: 4 kB / 0.5028 GB, free: 8.742 MB / 366.1 MB Notification: Performance of Templates: time 0.008434/0.2922, allocations: 6.267 MB / 0.5089 GB, free: 4.207 MB / 366.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: 7.508698870195076] Failed to read output from testmodel.py, exit status != 0: 0.30026275501586497 0.31200093399999995 0.044056898000000004 Calling exit ...