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.00165/0.00165, allocations: 114.4 kB / 16.42 MB, free: 6.008 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.002109/0.002109, allocations: 187.3 kB / 17.35 MB, free: 5.625 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.377/1.377, 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.05821/0.05821, allocations: 10.74 MB / 281.3 MB, free: 1.297 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.001478/0.001478, allocations: 65.5 kB / 391.5 MB, free: 45.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07707/0.07856, allocations: 49.03 MB / 440.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.002688/0.08129, allocations: 2.332 MB / 442.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.08233, allocations: 0.6661 MB / 443.5 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.0825, allocations: 23.81 kB / 443.6 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.0827, allocations: 67.27 kB / 443.6 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.08283, allocations: 51.48 kB / 443.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006272/0.08346, allocations: 343.3 kB / 444 MB, free: 336 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005338/0.08401, allocations: 0.6745 MB / 444.7 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.0842, allocations: 105.7 kB / 444.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.08444, allocations: 223.2 kB / 445 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.08472, allocations: 242.9 kB / 445.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.91e-05/0.0848, allocations: 36 kB / 445.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.08492, allocations: 55.98 kB / 445.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000166/0.08509, allocations: 159.5 kB / 445.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.08526, allocations: 218.5 kB / 445.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000394/0.08566, allocations: 478.1 kB / 446.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.08568, allocations: 4 kB / 446.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.08568, allocations: 0 / 446.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.0857, allocations: 4 kB / 446.2 MB, free: 14.15 MB / 334.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.001275/0.08698, allocations: 0.8286 MB / 447 MB, free: 13.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.08702, allocations: 8.031 kB / 447 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.08713, allocations: 68.17 kB / 447.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005918/0.08773, allocations: 461.6 kB / 447.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.08777, allocations: 29.38 kB / 447.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.39e-05/0.08785, allocations: 52.27 kB / 447.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007374/0.08859, allocations: 488.3 kB / 448.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.08862, allocations: 4.188 kB / 448.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.198e-05/0.08867, allocations: 19.94 kB / 448.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.08869, allocations: 8 kB / 448.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005782/0.08927, allocations: 331.7 kB / 448.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.09147, allocations: 1.594 MB / 450 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.09199, allocations: 263.3 kB / 450.3 MB, free: 9.824 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.0922, allocations: 109.3 kB / 450.4 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.09222, allocations: 4.234 kB / 450.4 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003394/0.09257, allocations: 199.5 kB / 450.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.944e-06/0.09258, allocations: 0 / 450.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008265/0.09341, allocations: 470.1 kB / 451.1 MB, free: 9.039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.09345, allocations: 67.34 kB / 451.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004426/0.0939, allocations: 497.8 kB / 451.6 MB, free: 8.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.09394, allocations: 41.7 kB / 451.6 MB, free: 8.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/0.09413, allocations: 303.4 kB / 451.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.038e-05/0.09421, allocations: 94.73 kB / 452 MB, free: 8.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.09433, allocations: 114.1 kB / 452.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.09447, allocations: 366.8 kB / 452.5 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.09469, allocations: 117.1 kB / 452.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000364/0.09506, allocations: 418.7 kB / 453 MB, free: 6.867 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/0.09635, allocations: 0.8179 MB / 453.8 MB, free: 5.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.09637, allocations: 3.938 kB / 453.9 MB, free: 5.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009163/0.09729, allocations: 0.6292 MB / 454.5 MB, free: 5.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.09732, allocations: 8 kB / 454.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.09734, allocations: 15.94 kB / 454.5 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.09736, allocations: 12.81 kB / 454.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004005/0.09777, allocations: 135.7 kB / 454.6 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.96e-05/0.0978, allocations: 23.92 kB / 454.7 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/0.09806, allocations: 71.27 kB / 454.7 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.742e-05/0.0981, allocations: 36.12 kB / 454.8 MB, free: 4.973 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: 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.0002869/0.09839, allocations: 251.1 kB / 455 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.32e-05/0.09847, allocations: 55.34 kB / 455.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.491e-05/0.09857, allocations: 53.05 kB / 455.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.09858, allocations: 3.938 kB / 455.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.09859, allocations: 0 / 455.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.393e-05/0.09868, allocations: 124.5 kB / 455.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.137e-05/0.09875, allocations: 8 kB / 455.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.09891, allocations: 15.98 kB / 455.3 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.944e-05/0.09897, allocations: 19.97 kB / 455.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009262/0.09991, allocations: 0.493 MB / 455.8 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009458/0.1009, allocations: 0.7205 MB / 456.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000262/0.1011, allocations: 148.4 kB / 456.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000314/0.1015, allocations: 318.9 kB / 457 MB, free: 2.727 MB / 334.1 MB Notification: Performance of Backend: time 3.7e-07/0.1015, allocations: 0 / 457 MB, free: 2.727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008101/0.1023, allocations: 391.3 kB / 457.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of SimCode: time 0.001291/0.1036, allocations: 1.306 MB / 458.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of Templates: time 0.008054/0.1117, allocations: 3.958 MB / 462.6 MB, free: 13.04 MB / 350.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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1)