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.001142/0.001142, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001199/0.001199, allocations: 198.8 kB / 16.14 MB, free: 6.656 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.715/1.715, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05834/0.05834, allocations: 10.74 MB / 280.1 MB, free: 10.71 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.001598/0.001598, allocations: 63.84 kB / 339.8 MB, free: 23.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1112, allocations: 49.02 MB / 388.9 MB, free: 6.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003953/0.1152, allocations: 2.383 MB / 391.3 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.1165, allocations: 0.6701 MB / 391.9 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.1167, allocations: 15.81 kB / 391.9 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002492/0.117, allocations: 51.53 kB / 392 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00011/0.1171, allocations: 31.73 kB / 392 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006735/0.1178, allocations: 295.5 kB / 392.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005966/0.1184, allocations: 0.6352 MB / 392.9 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.1186, allocations: 101.7 kB / 393 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.1188, allocations: 203.1 kB / 393.2 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.1191, allocations: 226.9 kB / 393.5 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.536e-05/0.1192, allocations: 20 kB / 393.5 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.1193, allocations: 47.97 kB / 393.5 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.1195, allocations: 143.4 kB / 393.7 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.1197, allocations: 202.5 kB / 393.9 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004286/0.1201, allocations: 438.6 kB / 394.3 MB, free: 1.246 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1201, allocations: 0 / 394.3 MB, free: 1.246 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.1201, allocations: 0 / 394.3 MB, free: 1.246 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.1201, allocations: 7.938 kB / 394.3 MB, free: 1.238 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.001451/0.1216, allocations: 0.8359 MB / 395.1 MB, free: 360 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.1216, allocations: 8.031 kB / 395.1 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.1218, allocations: 60.28 kB / 395.2 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000567/0.1223, allocations: 441.7 kB / 395.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.1224, allocations: 29.38 kB / 395.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.61e-05/0.1225, allocations: 48.36 kB / 395.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007736/0.1233, allocations: 484.3 kB / 396.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.1233, allocations: 8.188 kB / 396.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.339e-05/0.1233, allocations: 19.94 kB / 396.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.1234, allocations: 8 kB / 396.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005856/0.1239, allocations: 327.7 kB / 396.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002288/0.1262, allocations: 1.598 MB / 398.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005717/0.1268, allocations: 270.2 kB / 398.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.1271, allocations: 105.3 kB / 398.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.1271, allocations: 4.234 kB / 398.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003933/0.1275, allocations: 199.5 kB / 398.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.314e-06/0.1275, allocations: 3.938 kB / 398.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009432/0.1284, allocations: 481.3 kB / 399.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.1285, allocations: 71.34 kB / 399.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005219/0.129, allocations: 497.7 kB / 399.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.1291, allocations: 33.7 kB / 399.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.1293, allocations: 299.5 kB / 400.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.154e-05/0.1294, allocations: 98.72 kB / 400.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.1295, allocations: 114.1 kB / 400.3 MB, free: 11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.1297, allocations: 370.8 kB / 400.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/0.1299, allocations: 117.1 kB / 400.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004039/0.1304, allocations: 414.7 kB / 401.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.1317, allocations: 0.8185 MB / 402 MB, free: 9.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.1317, allocations: 4 kB / 402 MB, free: 9.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009383/0.1327, allocations: 0.6259 MB / 402.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.1327, allocations: 12.19 kB / 402.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.1327, allocations: 12 kB / 402.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.628e-05/0.1328, allocations: 16 kB / 402.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004011/0.1332, allocations: 135.7 kB / 402.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.199e-05/0.1332, allocations: 23.92 kB / 402.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.1335, allocations: 71.27 kB / 402.9 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.1335, allocations: 32 kB / 402.9 MB, free: 8.074 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.0003265/0.1338, allocations: 243.2 kB / 403.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.1339, allocations: 51.34 kB / 403.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.213e-05/0.134, allocations: 57.05 kB / 403.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.134, allocations: 7.938 kB / 403.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.134, allocations: 128 / 403.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.134, allocations: 0 / 403.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004307/0.1345, allocations: 425.2 kB / 403.7 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1345, allocations: 0 / 403.7 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002729/0.1348, allocations: 59.91 kB / 403.7 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1348, allocations: 0 / 403.7 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.1348, allocations: 15.98 kB / 403.7 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.1348, allocations: 3.938 kB / 403.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.1348, allocations: 0 / 403.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008371/0.1357, allocations: 0.5353 MB / 404.3 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.681e-05/0.1358, allocations: 132.4 kB / 404.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.244e-05/0.1358, allocations: 15.92 kB / 404.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.136, allocations: 8 kB / 404.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.998e-05/0.136, allocations: 19.97 kB / 404.4 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.1361, allocations: 15.98 kB / 404.5 MB, free: 6.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003044/0.1364, allocations: 326.8 kB / 404.8 MB, free: 6.086 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1364, allocations: 0 / 404.8 MB, free: 6.086 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004082/0.1368, allocations: 91.78 kB / 404.9 MB, free: 5.996 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.0001914/0.137, allocations: 127.2 kB / 405 MB, free: 5.863 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006316/0.1376, allocations: 394.4 kB / 405.4 MB, free: 5.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.1376, allocations: 4 kB / 405.4 MB, free: 5.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.1379, allocations: 139.9 kB / 405.5 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.1383, allocations: 62.52 kB / 405.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.1397, allocations: 1.041 MB / 406.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005437/0.1403, allocations: 0.8623 MB / 407.5 MB, free: 3.316 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000229/0.1405, allocations: 96.38 kB / 407.6 MB, free: 3.223 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.062e-05/0.1406, allocations: 31.44 kB / 407.6 MB, free: 3.191 MB / 302.1 MB Notification: Performance of SimCode: time 1.282e-06/0.1406, allocations: 4 kB / 407.6 MB, free: 3.188 MB / 302.1 MB Notification: Performance of Templates: time 0.007745/0.1484, allocations: 3.077 MB / 410.7 MB, free: 108 kB / 302.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)