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.008416/0.008416, allocations: 102.1 kB / 15.73 MB, free: 6.477 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.001639/0.001639, allocations: 196.3 kB / 16.67 MB, free: 6.391 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.623/1.623, allocations: 205.1 MB / 222.5 MB, free: 4.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.0592/0.0592, allocations: 10.74 MB / 280.6 MB, free: 10.47 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.001498/0.001498, allocations: 75.89 kB / 390.8 MB, free: 5.035 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4241/0.4256, allocations: 49.01 MB / 439.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.004488/0.4301, allocations: 2.328 MB / 442.2 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001538/0.4317, allocations: 0.6768 MB / 442.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002066/0.4319, allocations: 16.12 kB / 442.9 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002917/0.4322, allocations: 75.16 kB / 442.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.4324, allocations: 43.12 kB / 443 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009955/0.4334, allocations: 353.2 kB / 443.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009444/0.4343, allocations: 0.6711 MB / 444 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.4346, allocations: 94.72 kB / 444.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003091/0.4349, allocations: 232.4 kB / 444.3 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003508/0.4353, allocations: 239.9 kB / 444.6 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.992e-05/0.4353, allocations: 33.28 kB / 444.6 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.4355, allocations: 60.44 kB / 444.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002014/0.4357, allocations: 154.2 kB / 444.8 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.4359, allocations: 217.8 kB / 445 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006498/0.4366, allocations: 475.5 kB / 445.5 MB, free: 1.941 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.4366, allocations: 0 / 445.5 MB, free: 1.941 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4366, allocations: 3.938 kB / 445.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.4366, allocations: 1.734 kB / 445.5 MB, free: 1.938 MB / 318.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.001572/0.4382, allocations: 0.8373 MB / 446.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.4383, allocations: 9.344 kB / 446.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.4384, allocations: 61.95 kB / 446.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006912/0.4391, allocations: 457.7 kB / 446.8 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.494e-05/0.4391, allocations: 39.78 kB / 446.9 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.777e-05/0.4392, allocations: 45.72 kB / 446.9 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009402/0.4402, allocations: 499.5 kB / 447.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/0.4402, allocations: 2.438 kB / 447.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.789e-05/0.4403, allocations: 20.62 kB / 447.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.841e-05/0.4403, allocations: 10.34 kB / 447.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005917/0.4409, allocations: 316.5 kB / 447.8 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002565/0.4435, allocations: 1.603 MB / 449.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005994/0.4441, allocations: 254.9 kB / 449.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.4443, allocations: 110 kB / 449.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.4443, allocations: 6.922 kB / 449.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003747/0.4447, allocations: 202.5 kB / 449.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.154e-06/0.4447, allocations: 0 / 449.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009644/0.4457, allocations: 470.5 kB / 450.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/0.4458, allocations: 70.91 kB / 450.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005629/0.4464, allocations: 497 kB / 450.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.4464, allocations: 37.77 kB / 451 MB, free: 14.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002263/0.4466, allocations: 303.9 kB / 451.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.157e-05/0.4467, allocations: 96.83 kB / 451.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000237/0.447, allocations: 121.4 kB / 451.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.4471, allocations: 368 kB / 451.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.4474, allocations: 120.7 kB / 452 MB, free: 13.44 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004228/0.4478, allocations: 409.1 kB / 452.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.4493, allocations: 0.8142 MB / 453.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.4493, allocations: 6.906 kB / 453.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001098/0.4504, allocations: 0.6225 MB / 453.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.4504, allocations: 15.19 kB / 453.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/0.4505, allocations: 10.22 kB / 453.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.726e-05/0.4505, allocations: 18.09 kB / 453.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004341/0.4509, allocations: 133.7 kB / 454 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.746e-05/0.451, allocations: 21.77 kB / 454 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002712/0.4513, allocations: 71.38 kB / 454.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.154e-05/0.4513, allocations: 35.16 kB / 454.1 MB, free: 11.88 MB / 334.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.0003688/0.4517, allocations: 254.9 kB / 454.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.382e-05/0.4518, allocations: 49.28 kB / 454.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.4519, allocations: 57.36 kB / 454.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.4519, allocations: 7.25 kB / 454.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.4519, allocations: 0 / 454.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.4519, allocations: 0 / 454.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004964/0.4524, allocations: 422.7 kB / 454.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4525, allocations: 4 kB / 454.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002874/0.4527, allocations: 53.89 kB / 454.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.4528, allocations: 2.531 kB / 454.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.866e-05/0.4528, allocations: 12.67 kB / 454.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.4528, allocations: 5.125 kB / 454.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4528, allocations: 0 / 454.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.454, allocations: 0.5484 MB / 455.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.4541, allocations: 127.2 kB / 455.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.214e-05/0.4542, allocations: 16.25 kB / 455.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.4543, allocations: 21.58 kB / 455.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.855e-05/0.4544, allocations: 20.88 kB / 455.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.4545, allocations: 12.17 kB / 455.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003784/0.4548, allocations: 323 kB / 456 MB, free: 10.55 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4549, allocations: 0 / 456 MB, free: 10.55 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000489/0.4553, allocations: 93.52 kB / 456.1 MB, free: 10.53 MB / 334.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.0002078/0.4556, allocations: 127.5 kB / 456.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007404/0.4563, allocations: 391.5 kB / 456.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4563, allocations: 0 / 456.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002834/0.4566, allocations: 144.4 kB / 456.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.457, allocations: 53.28 kB / 456.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.4585, allocations: 0.874 MB / 457.7 MB, free: 9.609 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006732/0.4592, allocations: 0.866 MB / 458.5 MB, free: 8.832 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000232/0.4594, allocations: 95.81 kB / 458.6 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.292e-05/0.4595, allocations: 33.97 kB / 458.7 MB, free: 8.777 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4595, allocations: 0 / 458.7 MB, free: 8.777 MB / 334.1 MB Notification: Performance of Templates: time 0.01005/0.4696, allocations: 3.341 MB / 462 MB, free: 6.188 MB / 334.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)