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) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 107.6 kB / 18.19 MB, free: 3.879 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00167/0.00167, allocations: 189.9 kB / 21.34 MB, free: 0.7383 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 225.6 MB / 249.9 MB, free: 13.48 MB / 206.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06555/0.06555, allocations: 11.35 MB / 316.4 MB, free: 14.39 MB / 254.1 MB [Timeout remaining time 90] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.002629/0.002629, allocations: 59.91 kB / 441 MB, free: 8.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1375, allocations: 54.83 MB / 495.9 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.004796/0.1423, allocations: 2.556 MB / 498.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00208/0.1444, allocations: 0.7538 MB / 499.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003338/0.1447, allocations: 19.81 kB / 499.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003472/0.1451, allocations: 95.05 kB / 499.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001533/0.1452, allocations: 47.42 kB / 499.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.1463, allocations: 391.2 kB / 499.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009741/0.1473, allocations: 0.7505 MB / 0.4887 GB, free: 12.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.1475, allocations: 73.75 kB / 0.4888 GB, free: 12.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003275/0.1478, allocations: 243.1 kB / 0.4891 GB, free: 12.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003602/0.1482, allocations: 258.7 kB / 0.4893 GB, free: 11.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.632e-05/0.1483, allocations: 40 kB / 0.4893 GB, free: 11.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.1485, allocations: 71.91 kB / 0.4894 GB, free: 11.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002289/0.1487, allocations: 167.4 kB / 0.4896 GB, free: 11.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000263/0.1489, allocations: 250.3 kB / 0.4898 GB, free: 11.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007289/0.1497, allocations: 0.5287 MB / 0.4903 GB, free: 10.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1497, allocations: 0 / 0.4903 GB, free: 10.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1497, allocations: 0 / 0.4903 GB, free: 10.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.1497, allocations: 0 / 0.4903 GB, free: 10.93 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001754/0.1514, allocations: 0.9178 MB / 0.4912 GB, free: 9.953 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1515, allocations: 12.03 kB / 0.4912 GB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001452/0.1516, allocations: 72.47 kB / 0.4913 GB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007848/0.1524, allocations: 0.4901 MB / 0.4918 GB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.501e-05/0.1525, allocations: 37.38 kB / 0.4918 GB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.626e-05/0.1526, allocations: 52.38 kB / 0.4919 GB, free: 9.254 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.1536, allocations: 0.6078 MB / 0.4925 GB, free: 8.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.1537, allocations: 12.11 kB / 0.4925 GB, free: 8.578 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.545e-05/0.1537, allocations: 27.94 kB / 0.4925 GB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.1537, allocations: 12 kB / 0.4925 GB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007145/0.1544, allocations: 371.5 kB / 0.4929 GB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003377/0.1578, allocations: 2.682 MB / 0.4955 GB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006194/0.1584, allocations: 252.2 kB / 0.4957 GB, free: 5.102 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002245/0.1587, allocations: 101.3 kB / 0.4958 GB, free: 5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.1587, allocations: 240 / 0.4958 GB, free: 5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003837/0.1591, allocations: 203.4 kB / 0.496 GB, free: 4.789 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.314e-06/0.1591, allocations: 0 / 0.496 GB, free: 4.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009834/0.1601, allocations: 494.2 kB / 0.4965 GB, free: 4.301 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/0.1601, allocations: 63.39 kB / 0.4965 GB, free: 4.227 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006174/0.1608, allocations: 0.5417 MB / 0.4971 GB, free: 3.672 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.534e-05/0.1608, allocations: 41.69 kB / 0.4971 GB, free: 3.625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002838/0.1611, allocations: 347.9 kB / 0.4974 GB, free: 3.281 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.1612, allocations: 111.2 kB / 0.4975 GB, free: 3.172 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.1614, allocations: 138.2 kB / 0.4977 GB, free: 3.027 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002259/0.1616, allocations: 370.8 kB / 0.498 GB, free: 2.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002498/0.1619, allocations: 125.6 kB / 0.4982 GB, free: 2.535 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006179/0.1625, allocations: 0.4965 MB / 0.4986 GB, free: 1.859 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.1642, allocations: 0.9257 MB / 0.4995 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.716e-06/0.1642, allocations: 4 kB / 0.4995 GB, free: 0.7539 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00126/0.1655, allocations: 0.7198 MB / 0.5002 GB, free: 28 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.1655, allocations: 11.94 kB / 0.5003 GB, free: 16 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/0.1655, allocations: 16 kB / 0.5003 GB, free: 0 / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.832e-05/0.1656, allocations: 16.05 kB / 0.5003 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004764/0.1661, allocations: 143.7 kB / 0.5004 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.175e-05/0.1661, allocations: 27.86 kB / 0.5005 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003493/0.1665, allocations: 91.8 kB / 0.5005 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.414e-05/0.1665, allocations: 40 kB / 0.5006 GB, free: 15.69 MB / 382.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: 58 * Number of states: 0 () * Number of discrete variables: 38 (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.satLOW_in,R_inner.satHIGH_in,R_inner.ATreq_in,R_outer.satLOW_in,R_outer.satHIGH_in,R_outer.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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.0004388/0.167, allocations: 256.2 kB / 0.5008 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.635e-05/0.1671, allocations: 67.5 kB / 0.5009 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.1672, allocations: 57.5 kB / 0.5009 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.1672, allocations: 8 kB / 0.5009 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.1672, allocations: 0 / 0.5009 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.1672, allocations: 4 kB / 0.501 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006183/0.1678, allocations: 453.2 kB / 0.5014 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1678, allocations: 3.938 kB / 0.5014 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002902/0.1681, allocations: 51.95 kB / 0.5014 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.1681, allocations: 3.938 kB / 0.5014 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.1681, allocations: 11.98 kB / 0.5015 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1681, allocations: 4 kB / 0.5015 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1681, allocations: 0 / 0.5015 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.1692, allocations: 0.552 MB / 0.502 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/0.1693, allocations: 140.6 kB / 0.5021 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.1694, allocations: 12 kB / 0.5021 GB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1695, allocations: 11.98 kB / 0.5022 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.807e-05/0.1696, allocations: 15.97 kB / 0.5022 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.961e-05/0.1696, allocations: 15.98 kB / 0.5022 GB, free: 13.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004298/0.1701, allocations: 354.8 kB / 0.5025 GB, free: 13.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1701, allocations: 0 / 0.5025 GB, free: 13.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005238/0.1706, allocations: 103.8 kB / 0.5026 GB, free: 13.5 MB / 382.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.0002097/0.1708, allocations: 131 kB / 0.5027 GB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000759/0.1716, allocations: 410.4 kB / 0.5031 GB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1716, allocations: 320 / 0.5031 GB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002539/0.1718, allocations: 135.9 kB / 0.5033 GB, free: 12.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.1722, allocations: 56.47 kB / 0.5033 GB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.1738, allocations: 1.031 MB / 0.5043 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005794/0.1744, allocations: 0.8971 MB / 0.5052 GB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.603e-05/0.1745, allocations: 39.44 kB / 0.5052 GB, free: 10.75 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1745, allocations: 0 / 0.5052 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Templates: time 0.01113/0.1856, allocations: 6.247 MB / 0.5113 GB, free: 4.504 MB / 382.1 MB [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.makefile [Timeout 660] (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) [Timeout 480]