Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.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.ProcessControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl") translateModel(IndustrialControlSystems.Applications.ControlProblems.ProcessControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 106.2 kB / 16.36 MB, free: 6.289 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.002164/0.002164, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.75/1.75, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05613/0.05613, allocations: 10.73 MB / 281.3 MB, free: 1.301 MB / 222.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.002682/0.002682, allocations: 80.09 kB / 342 MB, free: 4.441 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3239, allocations: 48.99 MB / 391 MB, free: 50.2 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.005278/0.3292, allocations: 4.193 MB / 395.2 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003382/0.3326, allocations: 1.702 MB / 396.9 MB, free: 45.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001119/0.3338, allocations: 66.88 kB / 396.9 MB, free: 45.86 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003967/0.3342, allocations: 153.6 kB / 397.1 MB, free: 45.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006007/0.3348, allocations: 165.6 kB / 397.3 MB, free: 45.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002303/0.3371, allocations: 0.8849 MB / 398.1 MB, free: 45.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001989/0.3391, allocations: 1.506 MB / 399.6 MB, free: 44.38 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006086/0.3397, allocations: 428 kB / 400.1 MB, free: 44.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007343/0.3405, allocations: 0.6167 MB / 400.7 MB, free: 43.76 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005357/0.341, allocations: 0.5734 MB / 401.3 MB, free: 43.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001876/0.3412, allocations: 122.6 kB / 401.4 MB, free: 43.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.3414, allocations: 121.4 kB / 401.5 MB, free: 43.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000199/0.3416, allocations: 306 kB / 401.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003899/0.342, allocations: 0.6018 MB / 402.4 MB, free: 42.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009241/0.343, allocations: 1.282 MB / 403.7 MB, free: 41.53 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.343, allocations: 1.562 kB / 403.7 MB, free: 41.53 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.343, allocations: 4 kB / 403.7 MB, free: 41.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.343, allocations: 0 / 403.7 MB, free: 41.52 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.002505/0.3455, allocations: 1.679 MB / 405.4 MB, free: 40.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3456, allocations: 13.19 kB / 405.4 MB, free: 40.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000253/0.3458, allocations: 161.5 kB / 405.5 MB, free: 40.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001508/0.3473, allocations: 0.9959 MB / 406.5 MB, free: 39.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.3475, allocations: 294.7 kB / 406.8 MB, free: 39.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001805/0.3477, allocations: 132.6 kB / 406.9 MB, free: 39.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.3493, allocations: 1.112 MB / 408.1 MB, free: 38.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/0.3493, allocations: 12.94 kB / 408.1 MB, free: 38.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.479e-05/0.3494, allocations: 42.97 kB / 408.1 MB, free: 38.21 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/0.3494, allocations: 25.19 kB / 408.1 MB, free: 38.21 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.3507, allocations: 0.7216 MB / 408.9 MB, free: 37.86 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004693/0.3554, allocations: 3.823 MB / 412.7 MB, free: 34.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.3567, allocations: 0.8466 MB / 413.5 MB, free: 33.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004845/0.3572, allocations: 419.5 kB / 413.9 MB, free: 33.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.08e-05/0.3573, allocations: 24.98 kB / 414 MB, free: 33.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.3573, allocations: 47.56 kB / 414 MB, free: 33.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=99): time 2.685e-06/0.3573, allocations: 0 / 414 MB, free: 33.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.001535/0.3589, allocations: 1.072 MB / 415.1 MB, free: 32.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.858e-05/0.359, allocations: 376.8 kB / 415.4 MB, free: 31.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007478/0.3597, allocations: 0.9127 MB / 416.4 MB, free: 30.87 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.035e-05/0.3598, allocations: 53.64 kB / 416.4 MB, free: 30.81 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002864/0.3601, allocations: 0.5977 MB / 417 MB, free: 30.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.3603, allocations: 378.5 kB / 417.4 MB, free: 29.83 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003161/0.3606, allocations: 267.4 kB / 417.6 MB, free: 29.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.832e-05/0.3607, allocations: 361.9 kB / 418 MB, free: 29.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004963/0.3612, allocations: 351.9 kB / 418.3 MB, free: 28.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007062/0.362, allocations: 0.7525 MB / 419.1 MB, free: 27.94 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.3632, allocations: 1.076 MB / 420.2 MB, free: 26.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.146e-06/0.3633, allocations: 0 / 420.2 MB, free: 26.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.002096/0.3654, allocations: 1.276 MB / 421.4 MB, free: 25.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.3654, allocations: 12.97 kB / 421.5 MB, free: 25.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.3654, allocations: 11.98 kB / 421.5 MB, free: 25.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.643e-05/0.3655, allocations: 19.94 kB / 421.5 MB, free: 25.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/0.3668, allocations: 343.5 kB / 421.8 MB, free: 25.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.938e-05/0.3668, allocations: 19.94 kB / 421.8 MB, free: 25.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006148/0.3674, allocations: 134.7 kB / 422 MB, free: 24.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.547e-05/0.3675, allocations: 56 kB / 422 MB, free: 24.86 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 16 (R_FS.ATreq_in,R_FS.TS_in,R_Osc.TS_in,R_US.TS_in,R_OS.TS_in,R_iD.TS_in,R_i.TS_in,R_FOD.TS_in,R_FO.TS_in,R_Osc.ATreq_in,R_US.ATreq_in,R_OS.ATreq_in,R_iD.ATreq_in,R_i.ATreq_in,R_FOD.ATreq_in,R_FO.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 179 * 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.0003842/0.3679, allocations: 282 kB / 422.3 MB, free: 24.58 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.368, allocations: 126.4 kB / 422.4 MB, free: 24.45 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001478/0.3695, allocations: 1.053 MB / 423.5 MB, free: 23.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.3695, allocations: 12 kB / 423.5 MB, free: 23.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.3695, allocations: 0 / 423.5 MB, free: 23.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.3696, allocations: 3.984 kB / 423.5 MB, free: 23.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009106/0.3705, allocations: 1.067 MB / 424.6 MB, free: 22.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.3705, allocations: 4 kB / 424.6 MB, free: 22.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/0.372, allocations: 303.6 kB / 424.9 MB, free: 21.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/0.372, allocations: 4 kB / 424.9 MB, free: 21.95 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.64e-05/0.3721, allocations: 35.92 kB / 424.9 MB, free: 21.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.3721, allocations: 4 kB / 424.9 MB, free: 21.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3721, allocations: 0 / 424.9 MB, free: 21.91 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001721/0.3739, allocations: 1.455 MB / 426.4 MB, free: 20.44 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002046/0.3741, allocations: 215.1 kB / 426.6 MB, free: 20.21 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.3742, allocations: 24 kB / 426.6 MB, free: 20.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000484/0.3747, allocations: 31.98 kB / 426.6 MB, free: 20.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.3749, allocations: 76.88 kB / 426.7 MB, free: 20.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.128e-05/0.3749, allocations: 35.98 kB / 426.7 MB, free: 20.05 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005821/0.3755, allocations: 0.5904 MB / 427.3 MB, free: 19.45 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3755, allocations: 0 / 427.3 MB, free: 19.45 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008026/0.3763, allocations: 231.4 kB / 427.5 MB, free: 19.22 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 40 (NoControl.firstOrder.y,NoControl.firstOrder1.y,NoControl.integrator.y,NoControl.integrator1.y,NoControl.leadLag.dy,NoControl.firstOrder2.y,NoControl.leadLag1.dy,NoControl.firstOrder3.y,NoControl.complexPoles.y,NoControl.complexPoles.dy,NoControl.leadLag2.dy,NoControl.firstOrder4.y,Controlled.firstOrder.y,Controlled.firstOrder1.y,Controlled.integrator.y,Controlled.integrator1.y,Controlled.leadLag.dy,Controlled.firstOrder2.y,Controlled.leadLag1.dy,Controlled.firstOrder3.y,Controlled.complexPoles.y,Controlled.complexPoles.dy,Controlled.leadLag2.dy,Controlled.firstOrder4.y,R_FO.Iaction,R_FO.Fder,R_FOD.Iaction,R_FOD.Fder,R_i.Iaction,R_i.Fder,R_iD.Iaction,R_iD.Fder,R_OS.Iaction,R_OS.Fder,R_US.Iaction,R_US.Fder,R_Osc.Iaction,R_Osc.Fder,R_FS.Iaction,R_FS.Fder) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 115 * 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 Backend phase and start with SimCode phase: time 0.0001809/0.3765, allocations: 143.1 kB / 427.7 MB, free: 19.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.3779, allocations: 0.9412 MB / 428.6 MB, free: 18.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3779, allocations: 0.75 kB / 428.6 MB, free: 18.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004951/0.3784, allocations: 461.5 kB / 429.1 MB, free: 17.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006253/0.379, allocations: 155.2 kB / 429.2 MB, free: 17.54 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003615/0.3827, allocations: 2.695 MB / 431.9 MB, free: 14.81 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.3831, allocations: 1.154 MB / 433.1 MB, free: 13.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000601/0.3837, allocations: 181.3 kB / 433.3 MB, free: 13.44 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.3839, allocations: 99.42 kB / 433.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3839, allocations: 0 / 433.4 MB, free: 13.34 MB / 318.1 MB Notification: Performance of Templates: time 0.0145/0.3984, allocations: 8.771 MB / 442.1 MB, free: 4.602 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.sim & ./IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe 2>&1)