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.009515/0.009515, allocations: 101.9 kB / 15.73 MB, free: 6.496 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.001976/0.001977, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.829/1.829, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05786/0.05786, allocations: 10.75 MB / 280.6 MB, free: 10.41 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.00178/0.00178, allocations: 66.7 kB / 390.8 MB, free: 5.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.3892, allocations: 49.02 MB / 439.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.005403/0.3946, allocations: 4.18 MB / 444 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004139/0.3988, allocations: 1.692 MB / 445.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001483/0.4004, allocations: 68.72 kB / 445.8 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004738/0.4009, allocations: 150.9 kB / 445.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005724/0.4015, allocations: 166 kB / 446.1 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002133/0.4036, allocations: 0.8936 MB / 447 MB, free: 216 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002353/0.406, allocations: 1.504 MB / 448.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007774/0.4068, allocations: 420.1 kB / 448.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.4078, allocations: 0.6208 MB / 449.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007697/0.4086, allocations: 0.5699 MB / 450.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002128/0.4088, allocations: 122 kB / 450.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.409, allocations: 122.8 kB / 450.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000284/0.4093, allocations: 305.5 kB / 450.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005976/0.4099, allocations: 0.605 MB / 451.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001505/0.4114, allocations: 1.295 MB / 452.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.4115, allocations: 3.938 kB / 452.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4115, allocations: 0 / 452.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.172e-05/0.4115, allocations: 0 / 452.5 MB, free: 12.55 MB / 334.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.00327/0.4148, allocations: 1.721 MB / 454.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.4148, allocations: 9.875 kB / 454.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003302/0.4152, allocations: 169.8 kB / 454.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/0.4168, allocations: 1.004 MB / 455.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002565/0.4171, allocations: 308.3 kB / 455.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002046/0.4173, allocations: 123.1 kB / 455.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00189/0.4192, allocations: 1.12 MB / 457 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.431e-05/0.4192, allocations: 9.906 kB / 457 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-05/0.4193, allocations: 42.12 kB / 457 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.814e-05/0.4194, allocations: 25.06 kB / 457.1 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.4207, allocations: 0.7261 MB / 457.8 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005494/0.4262, allocations: 3.829 MB / 461.6 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.4279, allocations: 0.8367 MB / 462.5 MB, free: 5.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007731/0.4287, allocations: 426.8 kB / 462.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.657e-05/0.4287, allocations: 17.88 kB / 462.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.051e-05/0.4288, allocations: 48.81 kB / 462.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of pre-optimization done (n=99): time 3.307e-06/0.4288, allocations: 0 / 462.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=99): time 0.002427/0.4313, allocations: 1.091 MB / 464 MB, free: 4.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000277/0.4315, allocations: 372.8 kB / 464.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001251/0.4328, allocations: 0.9167 MB / 465.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.562e-05/0.4329, allocations: 49.7 kB / 465.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004442/0.4333, allocations: 0.6028 MB / 466 MB, free: 2.379 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002849/0.4336, allocations: 400.6 kB / 466.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003596/0.434, allocations: 271.5 kB / 466.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002544/0.4343, allocations: 357.9 kB / 467 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005804/0.4348, allocations: 355.8 kB / 467.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.4359, allocations: 0.7486 MB / 468.1 MB, free: 88 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001608/0.4375, allocations: 1.084 MB / 469.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.4375, allocations: 0 / 469.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.002025/0.4396, allocations: 1.273 MB / 470.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.4396, allocations: 12 kB / 470.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/0.4396, allocations: 8 kB / 470.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.259e-05/0.4397, allocations: 19.94 kB / 470.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.4411, allocations: 348.1 kB / 470.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.961e-05/0.4411, allocations: 19.94 kB / 470.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007481/0.4419, allocations: 139 kB / 471 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.976e-05/0.442, allocations: 59.98 kB / 471 MB, free: 13 MB / 350.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.0005278/0.4425, allocations: 281.3 kB / 471.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00021/0.4428, allocations: 135.1 kB / 471.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/0.4447, allocations: 1.049 MB / 472.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.4447, allocations: 12 kB / 472.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.4447, allocations: 0 / 472.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.4448, allocations: 7.969 kB / 472.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.4461, allocations: 1.067 MB / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.4461, allocations: 4 kB / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001664/0.4478, allocations: 307.6 kB / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/0.4478, allocations: 4 kB / 473.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.873e-05/0.4479, allocations: 31.98 kB / 473.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.029e-05/0.4479, allocations: 7.984 kB / 473.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4479, allocations: 0 / 473.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002201/0.4501, allocations: 1.468 MB / 475.4 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/0.4503, allocations: 215.9 kB / 475.6 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.4505, allocations: 31.98 kB / 475.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005068/0.451, allocations: 31.98 kB / 475.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.4511, allocations: 76.89 kB / 475.7 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-05/0.4512, allocations: 27.98 kB / 475.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007504/0.452, allocations: 0.5865 MB / 476.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.452, allocations: 0 / 476.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007728/0.4528, allocations: 231.6 kB / 476.6 MB, free: 7.344 MB / 350.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.0001847/0.4529, allocations: 147 kB / 476.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.4546, allocations: 0.9402 MB / 477.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4546, allocations: 5.812 kB / 477.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006308/0.4552, allocations: 453.5 kB / 478.1 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006987/0.4559, allocations: 151.8 kB / 478.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004126/0.4601, allocations: 2.757 MB / 481 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006963/0.4608, allocations: 1.158 MB / 482.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006136/0.4614, allocations: 177.4 kB / 482.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002724/0.4617, allocations: 103.4 kB / 482.4 MB, free: 1.398 MB / 350.1 MB Notification: Performance of SimCode: time 1.363e-06/0.4617, allocations: 0 / 482.4 MB, free: 1.398 MB / 350.1 MB Notification: Performance of Templates: time 0.01669/0.4784, allocations: 8.975 MB / 491.4 MB, free: 8.426 MB / 366.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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe 2>&1)