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.0009893/0.0009891, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001068/0.001068, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.3/1.3, allocations: 205.4 MB / 222.1 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05209/0.05209, allocations: 10.73 MB / 281.1 MB, free: 10.45 MB / 238.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.0004666/0.0004667, allocations: 12.22 kB / 341.6 MB, free: 23.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08679/0.08726, allocations: 50.01 MB / 391.6 MB, free: 5.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.002356/0.08966, allocations: 1.937 MB / 393.5 MB, free: 3.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.09082, allocations: 0.6546 MB / 394.2 MB, free: 3.191 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.091, allocations: 19.81 kB / 394.2 MB, free: 3.172 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.09118, allocations: 39.66 kB / 394.2 MB, free: 3.133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.0913, allocations: 47.81 kB / 394.3 MB, free: 3.086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006288/0.09194, allocations: 263.5 kB / 394.5 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004709/0.09242, allocations: 391 kB / 394.9 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.09259, allocations: 77.73 kB / 395 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000237/0.09284, allocations: 203.1 kB / 395.2 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002329/0.09308, allocations: 211 kB / 395.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.222e-05/0.09313, allocations: 12 kB / 395.4 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.644e-05/0.09322, allocations: 39.98 kB / 395.5 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.09338, allocations: 127.5 kB / 395.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.338e-05/0.09347, allocations: 97.44 kB / 395.7 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.09378, allocations: 323.5 kB / 396 MB, free: 1.367 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.09379, allocations: 0 / 396 MB, free: 1.367 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.0938, allocations: 0 / 396 MB, free: 1.367 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.09381, allocations: 4 kB / 396 MB, free: 1.363 MB / 286.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.001181/0.095, allocations: 0.7428 MB / 396.7 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.09504, allocations: 12.03 kB / 396.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.327e-05/0.09514, allocations: 63.2 kB / 396.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.0957, allocations: 424.7 kB / 397.2 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.011e-05/0.09575, allocations: 29 kB / 397.3 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.273e-05/0.09584, allocations: 51.98 kB / 397.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006988/0.09654, allocations: 479.7 kB / 397.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.09657, allocations: 7.906 kB / 397.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.652e-05/0.09662, allocations: 16 kB / 397.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.09663, allocations: 12 kB / 397.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005611/0.0972, allocations: 327.7 kB / 398.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002338/0.09955, allocations: 1.598 MB / 399.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005137/0.1001, allocations: 262.2 kB / 400 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.1001, allocations: 4.234 kB / 400 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003348/0.1004, allocations: 199.5 kB / 400.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.225e-06/0.1005, allocations: 0 / 400.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008468/0.1013, allocations: 0.4937 MB / 400.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.1014, allocations: 59.39 kB / 400.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005042/0.1019, allocations: 497.8 kB / 401.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.144e-05/0.1019, allocations: 37.7 kB / 401.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/0.1021, allocations: 299.5 kB / 401.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.19e-05/0.1022, allocations: 94.7 kB / 401.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.62e-05/0.1022, allocations: 12 kB / 401.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1024, allocations: 370.7 kB / 402 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002172/0.1026, allocations: 121.1 kB / 402.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003808/0.103, allocations: 414.7 kB / 402.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003272/0.1033, allocations: 199.7 kB / 402.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.1034, allocations: 4 kB / 402.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009056/0.1043, allocations: 0.6377 MB / 403.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.1043, allocations: 8 kB / 403.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.1043, allocations: 16.06 kB / 403.4 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.1043, allocations: 19.95 kB / 403.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000397/0.1047, allocations: 131.8 kB / 403.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/0.1048, allocations: 15.94 kB / 403.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.105, allocations: 79.39 kB / 403.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.234e-05/0.1051, allocations: 32 kB / 403.7 MB, free: 9.262 MB / 302.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.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 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 ($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,$whenCondition2,$whenCondition1,$PRE.R.CS,R.CS,$PRE.R_inner.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 (80): * Single equations (assignments): 80 * 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.0003017/0.1054, allocations: 251.1 kB / 403.9 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.041e-05/0.1054, allocations: 47.44 kB / 404 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.077e-05/0.1055, allocations: 53.05 kB / 404 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1055, allocations: 7.953 kB / 404 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1056, allocations: 0 / 404 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1056, allocations: 3.984 kB / 404 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003793/0.1059, allocations: 421.2 kB / 404.4 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.106, allocations: 4 kB / 404.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.1062, allocations: 51.91 kB / 404.5 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.1062, allocations: 4 kB / 404.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.912e-05/0.1063, allocations: 11.98 kB / 404.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1063, allocations: 0 / 404.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1063, allocations: 3.953 kB / 404.5 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008098/0.1071, allocations: 0.5552 MB / 405.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.46e-05/0.1072, allocations: 120.5 kB / 405.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.173e-05/0.1073, allocations: 15.98 kB / 405.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.1074, allocations: 15.92 kB / 405.2 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.1075, allocations: 27.91 kB / 405.2 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.1075, allocations: 15.95 kB / 405.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003039/0.1078, allocations: 322.8 kB / 405.6 MB, free: 7.258 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1078, allocations: 0 / 405.6 MB, free: 7.258 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004283/0.1083, allocations: 91.84 kB / 405.7 MB, free: 7.168 MB / 302.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 (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.0001716/0.1085, allocations: 123.2 kB / 405.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006433/0.1091, allocations: 406.9 kB / 406.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1091, allocations: 0 / 406.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.1094, allocations: 147.9 kB / 406.3 MB, free: 6.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.1097, allocations: 45.92 kB / 406.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.111, allocations: 1.021 MB / 407.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.1114, allocations: 0.8779 MB / 408.3 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.1116, allocations: 92.39 kB / 408.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.375e-05/0.1117, allocations: 31.44 kB / 408.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1117, allocations: 0 / 408.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of Templates: time 0.00671/0.1184, allocations: 2.952 MB / 411.3 MB, free: 1.426 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: