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) 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/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 106.5 kB / 16.36 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 191.2 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05672/0.05672, allocations: 10.74 MB / 281.3 MB, free: 1.309 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001677/0.001677, allocations: 67.89 kB / 342 MB, free: 4.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2714, allocations: 49.01 MB / 391 MB, free: 49.91 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003895/0.2754, allocations: 2.338 MB / 393.3 MB, free: 48.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.2767, allocations: 0.6703 MB / 394 MB, free: 47.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001693/0.2769, allocations: 20.06 kB / 394 MB, free: 47.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002767/0.2772, allocations: 71.08 kB / 394.1 MB, free: 47.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001709/0.2773, allocations: 49.88 kB / 394.1 MB, free: 47.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.2785, allocations: 341.1 kB / 394.5 MB, free: 47.53 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001028/0.2796, allocations: 0.6704 MB / 395.1 MB, free: 47.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002874/0.2799, allocations: 93.95 kB / 395.2 MB, free: 47.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004017/0.2803, allocations: 233.8 kB / 395.5 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004162/0.2807, allocations: 239.5 kB / 395.7 MB, free: 46.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.234e-05/0.2808, allocations: 35 kB / 395.7 MB, free: 46.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001734/0.281, allocations: 56.08 kB / 395.8 MB, free: 46.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002522/0.2813, allocations: 152.4 kB / 395.9 MB, free: 46.9 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002819/0.2815, allocations: 222.3 kB / 396.1 MB, free: 46.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007601/0.2823, allocations: 485.3 kB / 396.6 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.2823, allocations: 0 / 396.6 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.624e-06/0.2824, allocations: 3.938 kB / 396.6 MB, free: 46.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.2824, allocations: 0 / 396.6 MB, free: 46.52 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001844/0.2842, allocations: 0.8242 MB / 397.4 MB, free: 45.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.2843, allocations: 9.594 kB / 397.5 MB, free: 45.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.2844, allocations: 66.34 kB / 397.5 MB, free: 45.87 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009403/0.2854, allocations: 461.6 kB / 398 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.383e-05/0.2854, allocations: 36.23 kB / 398 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.2856, allocations: 45.45 kB / 398.1 MB, free: 45.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.2869, allocations: 488.5 kB / 398.5 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.423e-05/0.2869, allocations: 6.906 kB / 398.5 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.053e-05/0.287, allocations: 20.64 kB / 398.6 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.904e-05/0.287, allocations: 10.34 kB / 398.6 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009266/0.288, allocations: 322.7 kB / 398.9 MB, free: 45.21 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003007/0.291, allocations: 1.593 MB / 400.5 MB, free: 43.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007096/0.2917, allocations: 259.5 kB / 400.7 MB, free: 43.81 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002722/0.292, allocations: 114.6 kB / 400.8 MB, free: 43.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.292, allocations: 3.109 kB / 400.8 MB, free: 43.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004249/0.2925, allocations: 198.2 kB / 401 MB, free: 43.62 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.595e-06/0.2925, allocations: 0 / 401 MB, free: 43.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.001146/0.2936, allocations: 477.5 kB / 401.5 MB, free: 43.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.2937, allocations: 65.36 kB / 401.6 MB, free: 43.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006478/0.2944, allocations: 496.2 kB / 402.1 MB, free: 43.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.2944, allocations: 37.08 kB / 402.1 MB, free: 42.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.2946, allocations: 303.6 kB / 402.4 MB, free: 42.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.338e-05/0.2947, allocations: 101.6 kB / 402.5 MB, free: 42.62 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/0.2949, allocations: 119.9 kB / 402.6 MB, free: 42.55 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.295, allocations: 365.4 kB / 403 MB, free: 42.2 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002989/0.2953, allocations: 116 kB / 403.1 MB, free: 42.14 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004077/0.2958, allocations: 417.5 kB / 403.5 MB, free: 41.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.297, allocations: 0.8131 MB / 404.3 MB, free: 41.01 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.297, allocations: 3.656 kB / 404.3 MB, free: 41.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009202/0.298, allocations: 0.6283 MB / 404.9 MB, free: 40.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.298, allocations: 10.34 kB / 404.9 MB, free: 40.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.298, allocations: 10.41 kB / 404.9 MB, free: 40.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.17e-05/0.298, allocations: 22.28 kB / 405 MB, free: 40.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004129/0.2985, allocations: 129.6 kB / 405.1 MB, free: 40.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.552e-05/0.2985, allocations: 19.41 kB / 405.1 MB, free: 40.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.2988, allocations: 82.05 kB / 405.2 MB, free: 40.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-05/0.2988, allocations: 32.66 kB / 405.2 MB, free: 40.58 MB / 318.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: 46 * Number of states: 0 () * Number of discrete variables: 32 (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.ATreq_in,R_outer.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 80 * 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.0002954/0.2991, allocations: 249.7 kB / 405.5 MB, free: 40.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.089e-05/0.2992, allocations: 50.53 kB / 405.5 MB, free: 40.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.25e-05/0.2993, allocations: 56.52 kB / 405.6 MB, free: 40.31 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.2993, allocations: 6.75 kB / 405.6 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.2993, allocations: 1.5 kB / 405.6 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.2993, allocations: 3.984 kB / 405.6 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003805/0.2997, allocations: 422.5 kB / 406 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2997, allocations: 0 / 406 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002953/0.3, allocations: 45.44 kB / 406 MB, free: 39.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.3, allocations: 6.312 kB / 406 MB, free: 39.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/0.3001, allocations: 12.39 kB / 406.1 MB, free: 39.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.3001, allocations: 6.25 kB / 406.1 MB, free: 39.92 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3001, allocations: 7.938 kB / 406.1 MB, free: 39.91 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008616/0.301, allocations: 0.544 MB / 406.6 MB, free: 39.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.908e-05/0.3011, allocations: 130.9 kB / 406.7 MB, free: 39.49 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.428e-05/0.3011, allocations: 17.55 kB / 406.8 MB, free: 39.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.3013, allocations: 13.52 kB / 406.8 MB, free: 39.47 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.44e-05/0.3013, allocations: 15.73 kB / 406.8 MB, free: 39.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-05/0.3014, allocations: 16.39 kB / 406.8 MB, free: 39.46 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002892/0.3017, allocations: 323.7 kB / 407.1 MB, free: 39.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3017, allocations: 0 / 407.1 MB, free: 39.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004561/0.3021, allocations: 92.59 kB / 407.2 MB, free: 39.24 MB / 318.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.0001614/0.3023, allocations: 127.5 kB / 407.3 MB, free: 39.14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006382/0.303, allocations: 397 kB / 407.7 MB, free: 38.97 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.303, allocations: 0 / 407.7 MB, free: 38.97 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000244/0.3032, allocations: 145 kB / 407.9 MB, free: 38.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.3036, allocations: 51.03 kB / 407.9 MB, free: 38.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.3047, allocations: 0.866 MB / 408.8 MB, free: 38.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.3049, allocations: 0.8698 MB / 409.7 MB, free: 37.27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001723/0.3051, allocations: 92.33 kB / 409.7 MB, free: 37.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.151e-05/0.3052, allocations: 35.44 kB / 409.8 MB, free: 37.14 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3052, allocations: 4 kB / 409.8 MB, free: 37.14 MB / 318.1 MB Notification: Performance of Templates: time 0.006342/0.3115, allocations: 3.282 MB / 413.1 MB, free: 33.88 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.makefile (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 gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1)