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.001089/0.001089, allocations: 111.6 kB / 16.41 MB, free: 6.473 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.001018/0.001018, allocations: 190.7 kB / 17.35 MB, free: 5.711 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.265/1.265, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0595/0.0595, allocations: 10.75 MB / 281.3 MB, free: 1.27 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.001546/0.001546, allocations: 68.27 kB / 391.5 MB, free: 46.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06656/0.06812, allocations: 49.03 MB / 440.5 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.002728/0.07087, allocations: 2.332 MB / 442.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.07201, allocations: 0.67 MB / 443.5 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002256/0.07225, allocations: 19.81 kB / 443.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.07249, allocations: 67.27 kB / 443.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.07264, allocations: 55.42 kB / 443.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007273/0.07337, allocations: 339.4 kB / 444 MB, free: 332 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006487/0.07403, allocations: 0.6745 MB / 444.7 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001918/0.07424, allocations: 97.69 kB / 444.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003027/0.07455, allocations: 239.1 kB / 445 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003243/0.07488, allocations: 234.9 kB / 445.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.242e-05/0.07497, allocations: 36 kB / 445.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.07512, allocations: 55.97 kB / 445.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001778/0.07531, allocations: 155.5 kB / 445.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002075/0.07552, allocations: 218.5 kB / 445.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005074/0.07603, allocations: 481.7 kB / 446.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.07605, allocations: 0 / 446.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.07605, allocations: 0 / 446.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.07607, 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.00137/0.07745, allocations: 0.8476 MB / 447 MB, free: 13.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.07749, allocations: 8.031 kB / 447 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.07761, allocations: 68.52 kB / 447.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006018/0.07822, allocations: 470 kB / 447.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/0.07826, allocations: 33.38 kB / 447.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.086e-05/0.07834, allocations: 40.38 kB / 447.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007514/0.0791, allocations: 496.3 kB / 448.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/0.07913, allocations: 4.125 kB / 448.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.098e-05/0.07918, allocations: 19.94 kB / 448.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.0792, allocations: 12 kB / 448.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006015/0.0798, allocations: 319.7 kB / 448.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.08209, allocations: 1.598 MB / 450.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005367/0.08264, allocations: 261.4 kB / 450.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.08286, allocations: 113.2 kB / 450.4 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.0829, allocations: 4.234 kB / 450.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003453/0.08325, allocations: 207.4 kB / 450.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.255e-06/0.08326, allocations: 0 / 450.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008611/0.08413, allocations: 474.4 kB / 451.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.08418, allocations: 63.33 kB / 451.2 MB, free: 8.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004663/0.08465, allocations: 497.9 kB / 451.6 MB, free: 8.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.08468, allocations: 37.7 kB / 451.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.08489, allocations: 312.1 kB / 452 MB, free: 8.078 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.174e-05/0.08497, allocations: 99.22 kB / 452.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.0851, allocations: 114.2 kB / 452.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.08524, allocations: 366.8 kB / 452.5 MB, free: 7.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000229/0.08547, allocations: 121.1 kB / 452.7 MB, free: 7.375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003728/0.08585, allocations: 418.6 kB / 453.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001402/0.08726, allocations: 0.8187 MB / 453.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.08728, allocations: 4 kB / 453.9 MB, free: 5.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009867/0.08828, allocations: 0.6407 MB / 454.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.0883, allocations: 8 kB / 454.5 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.08833, allocations: 12 kB / 454.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.08835, allocations: 12.78 kB / 454.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/0.08881, allocations: 135.7 kB / 454.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.94e-05/0.08885, allocations: 23.92 kB / 454.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000278/0.08913, allocations: 71.52 kB / 454.8 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.08917, allocations: 32 kB / 454.8 MB, free: 4.926 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.0003071/0.08949, allocations: 263.2 kB / 455.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.127e-05/0.08956, allocations: 51.67 kB / 455.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.623e-05/0.08966, allocations: 53.05 kB / 455.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.08967, allocations: 3.938 kB / 455.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.08968, allocations: 4 kB / 455.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.28e-05/0.08978, allocations: 120.7 kB / 455.3 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.528e-05/0.08985, allocations: 19.98 kB / 455.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.09001, allocations: 7.984 kB / 455.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.09008, allocations: 19.97 kB / 455.4 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001009/0.09109, allocations: 0.493 MB / 455.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001008/0.09211, allocations: 0.7286 MB / 456.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002493/0.09238, allocations: 148.4 kB / 456.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003482/0.09274, allocations: 318.9 kB / 457 MB, free: 2.66 MB / 334.1 MB Notification: Performance of Backend: time 8.02e-07/0.09274, allocations: 0 / 457 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008433/0.09359, allocations: 394.7 kB / 457.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of SimCode: time 0.001437/0.09504, allocations: 1.323 MB / 458.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of Templates: time 0.008719/0.1038, allocations: 3.955 MB / 462.7 MB, free: 12.96 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)