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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 169 kB / 24.06 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9528/0.9528, allocations: 177.1 MB / 204.5 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03788/0.03788, allocations: 8.619 MB / 269.6 MB, free: 4.758 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") translateModel(IndustrialControlSystems.Applications.ControlProblems.CascadeControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 4 kB / 342.1 MB, free: 8.125 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.246e-05/1.415e-05, allocations: 10.25 kB / 342.1 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.CascadeControl): time 0.00212/0.002134, allocations: 2.438 MB / 344.5 MB, free: 5.656 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009149/0.003049, allocations: 0.7303 MB / 345.3 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.003204, allocations: 27.69 kB / 345.3 MB, free: 4.898 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.00339, allocations: 98.98 kB / 345.4 MB, free: 4.801 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.329e-05/0.003483, allocations: 47.38 kB / 345.4 MB, free: 4.754 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005999/0.004083, allocations: 471 kB / 345.9 MB, free: 4.293 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003799/0.004463, allocations: 0.6684 MB / 346.6 MB, free: 3.625 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.004586, allocations: 73.91 kB / 346.6 MB, free: 3.543 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.004778, allocations: 319.2 kB / 347 MB, free: 3.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001612/0.004939, allocations: 199.3 kB / 347.1 MB, free: 3.035 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.585e-05/0.004985, allocations: 36 kB / 347.2 MB, free: 3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.786e-05/0.005073, allocations: 59.98 kB / 347.2 MB, free: 2.941 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.005175, allocations: 171.4 kB / 347.4 MB, free: 2.773 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.003e-05/0.005265, allocations: 143.5 kB / 347.5 MB, free: 2.633 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.00557, allocations: 414.2 kB / 348 MB, free: 2.227 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005572, allocations: 3.938 kB / 348 MB, free: 2.223 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.005573, allocations: 4 kB / 348 MB, free: 2.219 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.00558, allocations: 0 / 348 MB, free: 2.219 MB / 266.7 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.0007321/0.006312, allocations: 0.9228 MB / 348.9 MB, free: 1.258 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.844e-05/0.00634, allocations: 12.03 kB / 348.9 MB, free: 1.246 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.914e-05/0.006429, allocations: 112.5 kB / 349 MB, free: 1.137 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003243/0.006754, allocations: 428.9 kB / 349.4 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.006778, allocations: 37.38 kB / 349.5 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.208e-05/0.00682, allocations: 60.31 kB / 349.5 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003193/0.007139, allocations: 0.5159 MB / 350 MB, free: 0 / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.007155, allocations: 192 / 350 MB, free: 0 / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.007184, allocations: 28.42 kB / 350.1 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.007194, allocations: 12.38 kB / 350.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001904/0.007384, allocations: 170.5 kB / 350.2 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.009285, allocations: 3.039 MB / 353.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002571/0.009542, allocations: 159.9 kB / 353.4 MB, free: 12.45 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.697e-05/0.009599, allocations: 48.83 kB / 353.5 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.009609, allocations: 4.234 kB / 353.5 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001563/0.009765, allocations: 149.6 kB / 353.6 MB, free: 12.24 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 1.373e-06/0.009767, allocations: 0 / 353.6 MB, free: 12.24 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.00035/0.01012, allocations: 325.1 kB / 354 MB, free: 11.91 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.197e-05/0.01015, allocations: 67.33 kB / 354 MB, free: 11.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/0.01043, allocations: 0.5293 MB / 354.5 MB, free: 11.29 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.01045, allocations: 37.7 kB / 354.6 MB, free: 11.25 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.01063, allocations: 418.4 kB / 355 MB, free: 10.83 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.699e-05/0.01068, allocations: 111.2 kB / 355.1 MB, free: 10.72 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.842e-05/0.01078, allocations: 143.8 kB / 355.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.01092, allocations: 0.5546 MB / 355.8 MB, free: 10 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.333e-05/0.01097, allocations: 45.61 kB / 355.8 MB, free: 9.961 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002677/0.01124, allocations: 0.5745 MB / 356.4 MB, free: 9.145 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004692/0.01171, allocations: 0.7703 MB / 357.2 MB, free: 8.129 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.01171, allocations: 8 kB / 357.2 MB, free: 8.121 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.000474/0.01219, allocations: 0.5467 MB / 357.7 MB, free: 7.57 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.0122, allocations: 12 kB / 357.8 MB, free: 7.559 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.01221, allocations: 12 kB / 357.8 MB, free: 7.547 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.01223, allocations: 20 kB / 357.8 MB, free: 7.527 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002552/0.01248, allocations: 147.8 kB / 357.9 MB, free: 7.383 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.644e-05/0.0125, allocations: 31.86 kB / 358 MB, free: 7.352 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.01265, allocations: 79.8 kB / 358 MB, free: 7.273 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.01268, allocations: 32 kB / 358.1 MB, free: 7.242 MB / 282.7 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.ATreq_in,R.satHIGH_in,R.satLOW_in,R_outer.ATreq_in,R_outer.satHIGH_in,R_outer.satLOW_in,R_inner.ATreq_in,R_inner.satHIGH_in,R_inner.satLOW_in,R.TS_in,R_outer.TS_in,R_inner.TS_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.0001796/0.01285, allocations: 266.8 kB / 358.3 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.966e-05/0.0129, allocations: 67.61 kB / 358.4 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.515e-05/0.01296, allocations: 53.28 kB / 358.4 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.01296, allocations: 4 kB / 358.4 MB, free: 6.848 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.01296, allocations: 0 / 358.4 MB, free: 6.848 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.01297, allocations: 4 kB / 358.5 MB, free: 6.844 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001923/0.01316, allocations: 272.8 kB / 358.7 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.01316, allocations: 0 / 358.7 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004027/0.01356, allocations: 51.91 kB / 358.8 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.01357, allocations: 0 / 358.8 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.01358, allocations: 7.984 kB / 358.8 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.01359, allocations: 4 kB / 358.8 MB, free: 6.488 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.01359, allocations: 0 / 358.8 MB, free: 6.488 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003679/0.01396, allocations: 392.8 kB / 359.2 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.426e-05/0.01399, allocations: 51.56 kB / 359.2 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.01402, allocations: 15.98 kB / 359.2 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.961e-05/0.01408, allocations: 8 kB / 359.2 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.288e-05/0.01412, allocations: 23.95 kB / 359.3 MB, free: 5.984 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.01413, allocations: 4 kB / 359.3 MB, free: 5.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000142/0.01427, allocations: 306.7 kB / 359.6 MB, free: 5.684 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01427, allocations: 0 / 359.6 MB, free: 5.684 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002898/0.01456, allocations: 107.8 kB / 359.7 MB, free: 5.578 MB / 282.7 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.0001075/0.01467, allocations: 135 kB / 359.8 MB, free: 5.438 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002636/0.01493, allocations: 284.5 kB / 360.1 MB, free: 5.16 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.51e-07/0.01493, allocations: 0 / 360.1 MB, free: 5.16 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.286e-05/0.01501, allocations: 83.83 kB / 360.2 MB, free: 5.074 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001939/0.01521, allocations: 64.23 kB / 360.2 MB, free: 5.012 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007496/0.01596, allocations: 0.8672 MB / 361.1 MB, free: 4.109 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.364e-05/0.01603, allocations: 149.2 kB / 361.2 MB, free: 3.941 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.01613, allocations: 64.98 kB / 361.3 MB, free: 3.879 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.717e-05/0.01623, allocations: 130.2 kB / 361.4 MB, free: 3.75 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01623, allocations: 0 / 361.4 MB, free: 3.75 MB / 282.7 MB Notification: Performance of Templates: time 0.006715/0.02295, allocations: 3.679 MB / 365.1 MB, free: 128 kB / 282.7 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=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.CascadeControl.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0264831599779427]