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: "" <> buildModelFMU(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_CascadeControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_CascadeControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008693/0.0008701, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.006867/0.006867, allocations: 170.6 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.175/2.175, allocations: 205.4 MB / 222.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0583/0.0583, allocations: 10.75 MB / 281.5 MB, free: 10.44 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.0005754/0.0005757, allocations: 19.12 kB / 342.3 MB, free: 23.39 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1622, allocations: 50 MB / 392.3 MB, free: 5.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.003495/0.1657, allocations: 2.01 MB / 394.3 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.1674, allocations: 0.6545 MB / 395 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002903/0.1677, allocations: 19.81 kB / 395 MB, free: 2.621 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003148/0.1681, allocations: 55.52 kB / 395.1 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.1682, allocations: 31.73 kB / 395.1 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009129/0.1691, allocations: 307.5 kB / 395.4 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008425/0.17, allocations: 0.6353 MB / 396 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.1703, allocations: 89.97 kB / 396.1 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003048/0.1706, allocations: 203 kB / 396.3 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003519/0.1709, allocations: 218.9 kB / 396.5 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.352e-05/0.171, allocations: 20 kB / 396.6 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.1712, allocations: 43.98 kB / 396.6 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002178/0.1714, allocations: 135.5 kB / 396.7 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002927/0.1717, allocations: 224.2 kB / 397 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005945/0.1723, allocations: 430.2 kB / 397.4 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.595e-06/0.1723, allocations: 0 / 397.4 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.1723, allocations: 0 / 397.4 MB, free: 256 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.407e-05/0.1724, allocations: 0 / 397.4 MB, free: 256 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.001769/0.1741, allocations: 0.7425 MB / 398.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.548e-05/0.1742, allocations: 20.02 kB / 398.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.1744, allocations: 74.72 kB / 398.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.1745, allocations: 64.19 kB / 398.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007/0.1752, allocations: 441.6 kB / 398.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.387e-05/0.1753, allocations: 33.36 kB / 398.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.43e-05/0.1754, allocations: 40.38 kB / 398.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009477/0.1763, allocations: 496.3 kB / 399.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.374e-05/0.1764, allocations: 11.84 kB / 399.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.996e-05/0.1765, allocations: 23.92 kB / 399.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.1765, allocations: 8 kB / 399.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006446/0.1771, allocations: 327.7 kB / 399.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002804/0.1799, allocations: 1.606 MB / 401.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000673/0.1806, allocations: 262.3 kB / 401.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.1809, allocations: 117.3 kB / 401.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.1809, allocations: 4.219 kB / 401.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003839/0.1813, allocations: 203.5 kB / 401.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.823e-06/0.1813, allocations: 0 / 401.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009471/0.1823, allocations: 0.4894 MB / 402.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/0.1824, allocations: 67.38 kB / 402.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005353/0.1829, allocations: 493.8 kB / 402.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.98e-05/0.183, allocations: 41.69 kB / 402.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002542/0.1832, allocations: 291.6 kB / 403.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.582e-05/0.1833, allocations: 102.7 kB / 403.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.027e-05/0.1834, allocations: 69.67 kB / 403.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002438/0.1837, allocations: 362.8 kB / 403.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.1839, allocations: 121.1 kB / 403.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005221/0.1844, allocations: 422.7 kB / 404.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/0.186, allocations: 0.8265 MB / 405 MB, free: 8.004 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.1861, allocations: 4 kB / 405.1 MB, free: 8 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.00112/0.1872, allocations: 0.6374 MB / 405.7 MB, free: 7.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.1872, allocations: 12.14 kB / 405.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.047e-05/0.1873, allocations: 16 kB / 405.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.613e-05/0.1873, allocations: 15.94 kB / 405.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004236/0.1877, allocations: 135.8 kB / 405.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.792e-05/0.1878, allocations: 23.92 kB / 405.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002586/0.1881, allocations: 71.27 kB / 406 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.286e-05/0.1881, allocations: 32 kB / 406 MB, free: 7.059 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.0003747/0.1885, allocations: 255.2 kB / 406.2 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.749e-05/0.1886, allocations: 47.44 kB / 406.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001383/0.1887, allocations: 53.05 kB / 406.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.1887, allocations: 3.938 kB / 406.3 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.1887, allocations: 0 / 406.3 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.1887, allocations: 7.984 kB / 406.3 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005218/0.1893, allocations: 425.2 kB / 406.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1893, allocations: 0 / 406.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002791/0.1896, allocations: 55.91 kB / 406.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1896, allocations: 0 / 406.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.559e-05/0.1896, allocations: 15.98 kB / 406.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.1896, allocations: 3.938 kB / 406.8 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1897, allocations: 0 / 406.8 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009344/0.1906, allocations: 0.5548 MB / 407.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.1907, allocations: 120.4 kB / 407.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.367e-05/0.1908, allocations: 19.92 kB / 407.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.1909, allocations: 15.98 kB / 407.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.04e-05/0.191, allocations: 19.98 kB / 407.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.63e-05/0.191, allocations: 11.98 kB / 407.6 MB, free: 5.367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003385/0.1914, allocations: 326.8 kB / 407.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1914, allocations: 0 / 407.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004211/0.1918, allocations: 91.78 kB / 408 MB, free: 4.961 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.00129/0.1931, allocations: 1.147 MB / 409.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007865/0.1939, allocations: 397.9 kB / 409.5 MB, free: 3.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1939, allocations: 0 / 409.5 MB, free: 3.398 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003038/0.1942, allocations: 152 kB / 409.7 MB, free: 3.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.1946, allocations: 54.53 kB / 409.7 MB, free: 3.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006758/0.2014, allocations: 4.766 MB / 414.5 MB, free: 14.05 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006524/0.2021, allocations: 0.874 MB / 415.4 MB, free: 13.16 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002717/0.2023, allocations: 88.39 kB / 415.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002582/0.2026, allocations: 167.3 kB / 415.6 MB, free: 12.9 MB / 318.1 MB Notification: Performance of SimCode: time 2.234e-06/0.2026, allocations: 0 / 415.6 MB, free: 12.9 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.2289, allocations: 7.447 MB / 423.1 MB, free: 5.574 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000316/0.2293, allocations: 233.4 kB / 423.3 MB, free: 5.324 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.371/2.6, allocations: 0 / 423.3 MB, free: 5.324 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_CascadeControl_fmu --startTime=0 --stopTime=90 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Applications_ControlProblems_CascadeControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1)