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.001291/0.001291, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0017/0.0017, allocations: 189.2 kB / 16.25 MB, free: 6.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.511/1.511, allocations: 205.1 MB / 222.1 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05797/0.05797, allocations: 10.74 MB / 280.2 MB, free: 10.67 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.001626/0.001626, allocations: 67.88 kB / 340 MB, free: 23.7 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1158, allocations: 49.02 MB / 389.1 MB, free: 6.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.004019/0.1199, allocations: 2.372 MB / 391.4 MB, free: 4.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.122, allocations: 0.6661 MB / 392.1 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004018/0.1224, allocations: 15.88 kB / 392.1 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003545/0.1228, allocations: 55.52 kB / 392.2 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003504/0.1232, allocations: 27.69 kB / 392.2 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.1245, allocations: 315.5 kB / 392.5 MB, free: 3.156 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009043/0.1254, allocations: 0.6704 MB / 393.2 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002298/0.1256, allocations: 105.7 kB / 393.3 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003671/0.126, allocations: 239 kB / 393.5 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003413/0.1264, allocations: 238.9 kB / 393.7 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.59e-05/0.1264, allocations: 32 kB / 393.8 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.1266, allocations: 59.97 kB / 393.8 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002347/0.1268, allocations: 155.5 kB / 394 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002293/0.1271, allocations: 218.5 kB / 394.2 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000522/0.1276, allocations: 466.6 kB / 394.7 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1276, allocations: 0 / 394.7 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1276, allocations: 0 / 394.7 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.1276, allocations: 4 kB / 394.7 MB, free: 0.9922 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.00143/0.1291, allocations: 0.8358 MB / 395.5 MB, free: 108 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.1291, allocations: 8.031 kB / 395.5 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.1292, allocations: 64.22 kB / 395.6 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005337/0.1298, allocations: 437.6 kB / 396 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.1298, allocations: 33.38 kB / 396 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.512e-05/0.1299, allocations: 44.36 kB / 396.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007782/0.1307, allocations: 492.2 kB / 396.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.1307, allocations: 4.188 kB / 396.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.676e-05/0.1308, allocations: 19.94 kB / 396.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.1308, allocations: 12 kB / 396.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005666/0.1314, allocations: 323.7 kB / 396.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002279/0.1337, allocations: 1.594 MB / 398.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.1342, allocations: 255.4 kB / 398.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.1344, allocations: 113.2 kB / 398.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.1344, allocations: 4.234 kB / 398.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000376/0.1348, allocations: 199.5 kB / 399.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.733e-06/0.1348, allocations: 0 / 399.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008773/0.1357, allocations: 481.3 kB / 399.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.1358, allocations: 71.31 kB / 399.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004973/0.1363, allocations: 497.8 kB / 400.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.966e-05/0.1363, allocations: 37.7 kB / 400.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002213/0.1366, allocations: 295.5 kB / 400.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.318e-05/0.1367, allocations: 102.6 kB / 400.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.1368, allocations: 110.2 kB / 400.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.137, allocations: 366.8 kB / 401 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000249/0.1373, allocations: 125.1 kB / 401.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004292/0.1377, allocations: 414.7 kB / 401.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.1392, allocations: 0.8224 MB / 402.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.1392, allocations: 4 kB / 402.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009277/0.1401, allocations: 0.6261 MB / 402.9 MB, free: 8.129 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.1402, allocations: 8 kB / 403 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.08e-05/0.1402, allocations: 15.98 kB / 403 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.295e-05/0.1402, allocations: 12 kB / 403 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004168/0.1407, allocations: 135.7 kB / 403.1 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.021e-05/0.1407, allocations: 15.94 kB / 403.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.141, allocations: 75.27 kB / 403.2 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.15e-05/0.141, allocations: 32 kB / 403.2 MB, free: 7.84 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.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.0003516/0.1414, allocations: 251.2 kB / 403.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.201e-05/0.1414, allocations: 47.34 kB / 403.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.859e-05/0.1415, allocations: 53.05 kB / 403.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.1416, allocations: 7.938 kB / 403.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.475e-06/0.1416, allocations: 3.938 kB / 403.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1416, allocations: 128 / 403.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004501/0.142, allocations: 437.2 kB / 404 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1421, allocations: 3.938 kB / 404 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002753/0.1423, allocations: 43.97 kB / 404.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1423, allocations: 4 kB / 404.1 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.1424, allocations: 11.98 kB / 404.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1424, allocations: 3.938 kB / 404.1 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1424, allocations: 0 / 404.1 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009062/0.1433, allocations: 0.5431 MB / 404.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.793e-05/0.1434, allocations: 128.4 kB / 404.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.517e-05/0.1435, allocations: 15.92 kB / 404.8 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.1436, allocations: 19.97 kB / 404.8 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.404e-05/0.1437, allocations: 11.98 kB / 404.8 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.1437, allocations: 15.98 kB / 404.8 MB, free: 6.156 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003194/0.1441, allocations: 322.8 kB / 405.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1441, allocations: 0 / 405.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004375/0.1445, allocations: 103.7 kB / 405.2 MB, free: 5.742 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 (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.0002029/0.1447, allocations: 119.2 kB / 405.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007361/0.1455, allocations: 425.9 kB / 405.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.1455, allocations: 0 / 405.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002422/0.1457, allocations: 141.3 kB / 405.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.1461, allocations: 59.7 kB / 406 MB, free: 5.008 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.1475, allocations: 1.046 MB / 407 MB, free: 3.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004083/0.1479, allocations: 0.8658 MB / 407.9 MB, free: 3.039 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002161/0.1482, allocations: 88.39 kB / 408 MB, free: 2.953 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.002e-05/0.1482, allocations: 39.44 kB / 408 MB, free: 2.914 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1482, allocations: 0 / 408 MB, free: 2.914 MB / 302.1 MB Notification: Performance of Templates: time 0.008532/0.1568, allocations: 3.232 MB / 411.2 MB, free: 15.68 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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1)