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.001189/0.001189, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.00113/0.00113, allocations: 187 kB / 17.34 MB, free: 5.719 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.389/1.389, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05854/0.05854, allocations: 10.73 MB / 281.3 MB, free: 1.27 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.001387/0.001387, allocations: 62.61 kB / 391.5 MB, free: 46.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06979/0.07119, allocations: 49.04 MB / 440.5 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.003825/0.07504, allocations: 4.174 MB / 444.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003009/0.07809, allocations: 1.693 MB / 446.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006641/0.07878, allocations: 71.38 kB / 446.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003297/0.07918, allocations: 153.9 kB / 446.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005181/0.0797, allocations: 170.2 kB / 446.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00165/0.08136, allocations: 0.8814 MB / 447.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00145/0.08282, allocations: 1.508 MB / 449.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006249/0.08346, allocations: 424.3 kB / 449.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007676/0.08424, allocations: 0.638 MB / 450.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006031/0.08485, allocations: 0.5671 MB / 450.8 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001628/0.08502, allocations: 127.9 kB / 450.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.08518, allocations: 123.9 kB / 451 MB, free: 9.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002164/0.0854, allocations: 306.8 kB / 451.3 MB, free: 8.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004185/0.08583, allocations: 0.6016 MB / 451.9 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.08699, allocations: 1.284 MB / 453.2 MB, free: 7.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.087, allocations: 0 / 453.2 MB, free: 7.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.08701, allocations: 0 / 453.2 MB, free: 7.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.08704, allocations: 0 / 453.2 MB, free: 7.008 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.002751/0.08979, allocations: 1.678 MB / 454.9 MB, free: 5.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.08984, allocations: 12.03 kB / 454.9 MB, free: 5.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002429/0.09009, allocations: 175 kB / 455.1 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.09152, allocations: 0.9867 MB / 456.1 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001819/0.09171, allocations: 300.2 kB / 456.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001634/0.09188, allocations: 124.3 kB / 456.5 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.09352, allocations: 1.125 MB / 457.6 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.09356, allocations: 3.938 kB / 457.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.916e-05/0.09366, allocations: 44 kB / 457.7 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.388e-05/0.09369, allocations: 28 kB / 457.7 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.09493, allocations: 0.726 MB / 458.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005076/0.1, allocations: 3.812 MB / 462.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.1016, allocations: 0.8411 MB / 463.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006153/0.1022, allocations: 428.5 kB / 463.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.78e-05/0.1023, allocations: 21.06 kB / 463.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.1023, allocations: 51.55 kB / 463.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=99): time 4.378e-06/0.1023, allocations: 0 / 463.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.00181/0.1041, allocations: 1.08 MB / 464.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001665/0.1043, allocations: 376.8 kB / 465 MB, free: 10.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.1054, allocations: 0.9104 MB / 465.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.442e-05/0.1055, allocations: 53.7 kB / 466 MB, free: 9.758 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004156/0.1059, allocations: 0.5821 MB / 466.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002787/0.1062, allocations: 386.5 kB / 466.9 MB, free: 8.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003271/0.1065, allocations: 263.4 kB / 467.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1067, allocations: 357.9 kB / 467.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006068/0.1073, allocations: 355.8 kB / 467.9 MB, free: 7.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008618/0.1081, allocations: 0.7602 MB / 468.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.1096, allocations: 1.076 MB / 469.7 MB, free: 5.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/0.1096, allocations: 4 kB / 469.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.001987/0.1116, allocations: 1.272 MB / 471 MB, free: 4.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.1116, allocations: 8 kB / 471 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.1117, allocations: 8 kB / 471 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.071e-05/0.1117, allocations: 20.78 kB / 471 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.1132, allocations: 347.5 kB / 471.4 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.416e-05/0.1132, allocations: 19.94 kB / 471.4 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007198/0.1139, allocations: 130.6 kB / 471.5 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.88e-05/0.114, allocations: 59.98 kB / 471.6 MB, free: 3.809 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.0004428/0.1145, allocations: 281.4 kB / 471.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001792/0.1147, allocations: 126.4 kB / 472 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/0.1165, allocations: 1.045 MB / 473 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.1165, allocations: 12 kB / 473 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1165, allocations: 0 / 473 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.1165, allocations: 7.969 kB / 473 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.1178, allocations: 1.074 MB / 474.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.1178, allocations: 4 kB / 474.1 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/0.1196, allocations: 311.6 kB / 474.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.435e-05/0.1196, allocations: 4 kB / 474.4 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.139e-05/0.1197, allocations: 27.98 kB / 474.4 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.461e-06/0.1197, allocations: 4 kB / 474.5 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.1197, allocations: 8 kB / 474.5 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/0.1218, allocations: 1.451 MB / 475.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.122, allocations: 207.2 kB / 476.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001576/0.1222, allocations: 24 kB / 476.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005583/0.1228, allocations: 31.98 kB / 476.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.1229, allocations: 64.91 kB / 476.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.967e-05/0.123, allocations: 35.98 kB / 476.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007104/0.1237, allocations: 0.5903 MB / 476.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1237, allocations: 0 / 476.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007399/0.1244, allocations: 239.3 kB / 477.1 MB, free: 14.18 MB / 366.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.0001739/0.1246, allocations: 143.1 kB / 477.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.1262, allocations: 0.9454 MB / 478.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.1262, allocations: 0 / 478.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006375/0.1269, allocations: 453.5 kB / 478.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006995/0.1276, allocations: 156.5 kB / 478.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004341/0.1319, allocations: 2.72 MB / 481.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007357/0.1327, allocations: 1.158 MB / 482.7 MB, free: 8.543 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004299/0.1331, allocations: 107.4 kB / 482.8 MB, free: 8.438 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1331, allocations: 0 / 482.8 MB, free: 8.438 MB / 366.1 MB Notification: Performance of Templates: time 0.02017/0.1533, allocations: 14.07 MB / 496.8 MB, free: 10.36 MB / 382.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)