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.001063/0.001063, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009773/0.009773, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.778/1.778, allocations: 205.4 MB / 222.5 MB, free: 5.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0575/0.0575, allocations: 10.74 MB / 281.5 MB, free: 10.66 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.0005536/0.0005535, allocations: 15.67 kB / 342.2 MB, free: 23.52 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1306, allocations: 50.01 MB / 392.2 MB, free: 5.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003882/0.1346, allocations: 2.006 MB / 394.2 MB, free: 3.422 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.1366, allocations: 0.674 MB / 394.9 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004679/0.1371, allocations: 15.81 kB / 394.9 MB, free: 2.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004257/0.1375, allocations: 51.52 kB / 395 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003599/0.1379, allocations: 27.75 kB / 395 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.1391, allocations: 311.5 kB / 395.3 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009118/0.1401, allocations: 0.6313 MB / 395.9 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002439/0.1403, allocations: 89.75 kB / 396 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002733/0.1406, allocations: 203 kB / 396.2 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003729/0.141, allocations: 214.9 kB / 396.4 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.043e-05/0.1411, allocations: 19.98 kB / 396.5 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.1412, allocations: 43.97 kB / 396.5 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001776/0.1414, allocations: 131.5 kB / 396.6 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.1416, allocations: 228.2 kB / 396.9 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004768/0.1421, allocations: 438.5 kB / 397.3 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.1421, allocations: 0 / 397.3 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1421, allocations: 0 / 397.3 MB, free: 372 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.427e-06/0.1422, allocations: 0 / 397.3 MB, free: 372 kB / 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.00152/0.1437, allocations: 0.7386 MB / 398 MB, free: 15.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.1437, allocations: 8.031 kB / 398 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.1439, allocations: 60.19 kB / 398.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006193/0.1445, allocations: 437.7 kB / 398.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.269e-05/0.1446, allocations: 41.31 kB / 398.6 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.678e-05/0.1447, allocations: 44.36 kB / 398.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008306/0.1455, allocations: 492.3 kB / 399.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.1455, allocations: 192 / 399.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.021e-05/0.1456, allocations: 19.94 kB / 399.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.653e-05/0.1456, allocations: 16 kB / 399.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006428/0.1463, allocations: 331.7 kB / 399.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002573/0.1489, allocations: 1.602 MB / 401 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005797/0.1495, allocations: 266.3 kB / 401.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002194/0.1497, allocations: 113.3 kB / 401.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.1497, allocations: 8.234 kB / 401.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003704/0.1501, allocations: 203.5 kB / 401.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/0.1501, allocations: 4 kB / 401.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009643/0.1511, allocations: 493.2 kB / 402.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/0.1512, allocations: 67.33 kB / 402.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005363/0.1517, allocations: 497.8 kB / 402.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.1518, allocations: 41.64 kB / 402.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.152, allocations: 299.5 kB / 403 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.739e-05/0.1521, allocations: 94.7 kB / 403.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.428e-05/0.1522, allocations: 65.69 kB / 403.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.1524, allocations: 370.8 kB / 403.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000226/0.1526, allocations: 117.1 kB / 403.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004347/0.153, allocations: 426.7 kB / 404 MB, free: 9.184 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.1545, allocations: 0.8302 MB / 404.9 MB, free: 8.215 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.656e-05/0.1545, allocations: 4 kB / 404.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.0009575/0.1555, allocations: 0.6371 MB / 405.5 MB, free: 7.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.1555, allocations: 8 kB / 405.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.1556, allocations: 12 kB / 405.5 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/0.1556, allocations: 12.72 kB / 405.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004029/0.156, allocations: 151.7 kB / 405.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.091e-05/0.156, allocations: 19.94 kB / 405.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.1563, allocations: 71.27 kB / 405.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.994e-05/0.1563, allocations: 32 kB / 405.8 MB, free: 7.266 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.0003456/0.1567, allocations: 243.2 kB / 406.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.934e-05/0.1568, allocations: 47.34 kB / 406.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.1569, allocations: 57.05 kB / 406.2 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.1569, allocations: 11.92 kB / 406.2 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.1569, allocations: 0 / 406.2 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1569, allocations: 0 / 406.2 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004773/0.1574, allocations: 421.2 kB / 406.6 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1574, allocations: 0 / 406.6 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/0.1577, allocations: 51.97 kB / 406.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.1577, allocations: 8 kB / 406.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.1577, allocations: 15.92 kB / 406.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1577, allocations: 3.938 kB / 406.7 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1577, allocations: 4 kB / 406.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009273/0.1587, allocations: 0.5471 MB / 407.2 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.1588, allocations: 128.4 kB / 407.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.163e-05/0.1589, allocations: 23.86 kB / 407.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.159, allocations: 11.98 kB / 407.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.938e-05/0.1591, allocations: 15.98 kB / 407.4 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.1591, allocations: 11.98 kB / 407.4 MB, free: 5.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003288/0.1595, allocations: 330.8 kB / 407.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1595, allocations: 4 kB / 407.7 MB, free: 5.258 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004253/0.1599, allocations: 91.78 kB / 407.8 MB, free: 5.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 (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.0002067/0.1601, allocations: 123.2 kB / 407.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006685/0.1608, allocations: 402.4 kB / 408.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1608, allocations: 0.8125 kB / 408.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002445/0.1611, allocations: 147.9 kB / 408.5 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.1614, allocations: 62.52 kB / 408.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.1629, allocations: 1.057 MB / 409.6 MB, free: 3.355 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005156/0.1634, allocations: 0.8701 MB / 410.5 MB, free: 2.461 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002241/0.1636, allocations: 88.39 kB / 410.5 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.599e-05/0.1637, allocations: 31.44 kB / 410.6 MB, free: 2.344 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1637, allocations: 4 kB / 410.6 MB, free: 2.34 MB / 302.1 MB Notification: Performance of Templates: time 0.007878/0.1716, allocations: 3.038 MB / 413.6 MB, free: 15.3 MB / 318.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: