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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001459/0.00146, allocations: 170.2 kB / 16.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07923/0.07923, allocations: 10.76 MB / 27.62 MB, free: 1.27 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.496/1.496, allocations: 205.4 MB / 236.2 MB, free: 10.15 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008044/0.0008044, allocations: 99.58 kB / 287 MB, free: 12.38 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.000375/0.0003751, allocations: 8 kB / 347.6 MB, free: 15.62 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2447, allocations: 50 MB / 397.6 MB, free: 34.59 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09839/0.3431, allocations: 78.69 MB / 476.3 MB, free: 3.793 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.3434, allocations: 75.95 kB / 476.4 MB, free: 3.719 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.01795/0.3614, allocations: 6.145 MB / 482.5 MB, free: 13.54 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.925e-06/0.3615, allocations: 0 / 482.5 MB, free: 13.54 MB / 362.8 MB Notification: Performance of Transformations before backend: time 6.252e-05/0.3615, allocations: 19.94 kB / 482.6 MB, free: 13.52 MB / 362.8 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.001658/0.3632, allocations: 0.7554 MB / 483.3 MB, free: 12.71 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.3633, allocations: 8.031 kB / 483.3 MB, free: 12.7 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002087/0.3635, allocations: 68.22 kB / 483.4 MB, free: 12.64 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009408/0.3644, allocations: 482.6 kB / 483.9 MB, free: 12.12 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.034e-05/0.3645, allocations: 33.38 kB / 483.9 MB, free: 12.09 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.577e-05/0.3646, allocations: 44.36 kB / 483.9 MB, free: 12.05 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000879/0.3655, allocations: 0.5075 MB / 484.4 MB, free: 11.51 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.135e-05/0.3655, allocations: 7.938 kB / 484.4 MB, free: 11.5 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.931e-05/0.3656, allocations: 16 kB / 484.5 MB, free: 11.49 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.3656, allocations: 8 kB / 484.5 MB, free: 11.48 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006308/0.3662, allocations: 335.7 kB / 484.8 MB, free: 11.15 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00285/0.3691, allocations: 1.603 MB / 486.4 MB, free: 9.461 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000608/0.3697, allocations: 257.4 kB / 486.7 MB, free: 9.203 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/0.37, allocations: 121.2 kB / 486.8 MB, free: 9.082 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.37, allocations: 8.172 kB / 486.8 MB, free: 9.074 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003723/0.3704, allocations: 207.5 kB / 487 MB, free: 8.859 MB / 362.8 MB Notification: Performance of pre-optimization done (n=31): time 2.735e-06/0.3704, allocations: 3.938 kB / 487 MB, free: 8.855 MB / 362.8 MB Notification: Performance of matching and sorting (n=31): time 0.0009185/0.3713, allocations: 492.7 kB / 487.5 MB, free: 8.367 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/0.3714, allocations: 75.38 kB / 487.5 MB, free: 8.281 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005751/0.372, allocations: 489.8 kB / 488 MB, free: 7.789 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.372, allocations: 33.7 kB / 488.1 MB, free: 7.75 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.3723, allocations: 299.5 kB / 488.3 MB, free: 7.453 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.3724, allocations: 110.6 kB / 488.5 MB, free: 7.344 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.083e-05/0.3724, allocations: 12 kB / 488.5 MB, free: 7.332 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3726, allocations: 362.8 kB / 488.8 MB, free: 6.969 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/0.3729, allocations: 129.1 kB / 488.9 MB, free: 6.844 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004696/0.3734, allocations: 417.2 kB / 489.4 MB, free: 6.293 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.3748, allocations: 0.8274 MB / 490.2 MB, free: 5.32 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.635e-05/0.3749, allocations: 4 kB / 490.2 MB, free: 5.316 MB / 362.8 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001082/0.376, allocations: 0.6338 MB / 490.8 MB, free: 4.676 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.376, allocations: 12 kB / 490.8 MB, free: 4.664 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.376, allocations: 12.09 kB / 490.8 MB, free: 4.652 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.994e-05/0.3761, allocations: 19.94 kB / 490.9 MB, free: 4.633 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004364/0.3765, allocations: 135.8 kB / 491 MB, free: 4.5 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.7e-05/0.3765, allocations: 23.92 kB / 491 MB, free: 4.477 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.3768, allocations: 67.36 kB / 491.1 MB, free: 4.41 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.734e-05/0.3769, allocations: 35.94 kB / 491.1 MB, free: 4.375 MB / 362.8 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(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.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] P_outer.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P_outer.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real P2.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] P2.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] P2.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real P1.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real R.CS:DISCRETE(fixed = true ) "Control signal" type: Real P_inner.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real R_inner.CS:DISCRETE(fixed = true ) "Control signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.R.FBout,R.FBout,$PRE.R.cs,R.cs,$PRE.R.satin,R.satin,$PRE.R_outer.CS,R_outer.CS,$PRE.R_outer.FBout,R_outer.FBout,$PRE.R_outer.cs,R_outer.cs,$PRE.R_outer.satin,R_outer.satin,$PRE.R_inner.FBout,R_inner.FBout,$PRE.R_inner.cs,R_inner.cs,$PRE.R_inner.satin,R_inner.satin,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.R.CS,$PRE.R_inner.CS,R.CS,R_inner.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 (81): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003877/0.3773, allocations: 255.7 kB / 491.4 MB, free: 4.117 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.369e-05/0.3774, allocations: 43.44 kB / 491.4 MB, free: 4.074 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/0.3775, allocations: 57.05 kB / 491.5 MB, free: 4.016 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.944e-06/0.3775, allocations: 11.88 kB / 491.5 MB, free: 4.004 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.3775, allocations: 0 / 491.5 MB, free: 4.004 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3775, allocations: 0 / 491.5 MB, free: 4.004 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005395/0.3781, allocations: 429.2 kB / 491.9 MB, free: 3.535 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.3781, allocations: 4 kB / 491.9 MB, free: 3.531 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002907/0.3784, allocations: 51.91 kB / 492 MB, free: 3.48 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.3784, allocations: 0 / 492 MB, free: 3.48 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.382e-05/0.3785, allocations: 15.98 kB / 492 MB, free: 3.465 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.678e-06/0.3785, allocations: 3.938 kB / 492 MB, free: 3.461 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3785, allocations: 0 / 492 MB, free: 3.461 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009883/0.3795, allocations: 0.5643 MB / 492.5 MB, free: 2.875 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.3796, allocations: 116.5 kB / 492.6 MB, free: 2.742 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.647e-05/0.3797, allocations: 19.92 kB / 492.7 MB, free: 2.723 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.3798, allocations: 15.98 kB / 492.7 MB, free: 2.707 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.235e-05/0.3799, allocations: 19.98 kB / 492.7 MB, free: 2.688 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.54e-05/0.3799, allocations: 15.92 kB / 492.7 MB, free: 2.672 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003736/0.3803, allocations: 322.8 kB / 493 MB, free: 2.359 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3803, allocations: 0 / 493 MB, free: 2.359 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0005323/0.3809, allocations: 99.78 kB / 493.1 MB, free: 2.262 MB / 362.8 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: 15 ($whenCondition3,$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 (31): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002537/0.3811, allocations: 129.9 kB / 493.3 MB, free: 2.129 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0007466/0.3819, allocations: 413.6 kB / 493.7 MB, free: 1.727 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.3819, allocations: 0 / 493.7 MB, free: 1.727 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002644/0.3822, allocations: 139.9 kB / 493.8 MB, free: 1.59 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.3825, allocations: 51.09 kB / 493.8 MB, free: 1.539 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.3842, allocations: 1.029 MB / 494.9 MB, free: 492 kB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005892/0.3848, allocations: 0.8701 MB / 495.7 MB, free: 15.59 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.000292/0.3851, allocations: 100.4 kB / 495.8 MB, free: 15.48 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.083e-05/0.3852, allocations: 31.44 kB / 495.9 MB, free: 15.45 MB / 378.8 MB Notification: Performance of SimCode: time 4.31e-07/0.3852, allocations: 0 / 495.9 MB, free: 15.45 MB / 378.8 MB Notification: Performance of Templates: time 0.00815/0.3933, allocations: 2.994 MB / 498.9 MB, free: 12.46 MB / 378.8 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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1)