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.009218/0.009218, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001774/0.001774, allocations: 191.2 kB / 16.67 MB, free: 5.93 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.87/1.87, allocations: 205.1 MB / 222.5 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.05579/0.05579, allocations: 10.74 MB / 280.6 MB, free: 1.289 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: 76.19 kB / 390.8 MB, free: 45.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.114, allocations: 49.03 MB / 439.9 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.004419/0.1185, allocations: 4.178 MB / 444 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003399/0.1219, allocations: 1.689 MB / 445.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007432/0.1227, allocations: 67.38 kB / 445.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003925/0.1231, allocations: 157.9 kB / 445.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000535/0.1236, allocations: 174.2 kB / 446.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002139/0.1258, allocations: 0.8891 MB / 447 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001716/0.1275, allocations: 1.505 MB / 448.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006967/0.1282, allocations: 432.2 kB / 448.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008182/0.1291, allocations: 0.6341 MB / 449.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006962/0.1298, allocations: 0.567 MB / 450.1 MB, free: 9.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001633/0.1299, allocations: 128 kB / 450.2 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001564/0.1301, allocations: 120 kB / 450.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002691/0.1304, allocations: 306.8 kB / 450.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005398/0.1309, allocations: 0.6132 MB / 451.3 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001232/0.1322, allocations: 1.276 MB / 452.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1322, allocations: 0 / 452.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1322, allocations: 0 / 452.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.1322, allocations: 0 / 452.6 MB, free: 7.023 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.002814/0.135, allocations: 1.686 MB / 454.2 MB, free: 5.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.1351, allocations: 15.97 kB / 454.3 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00025/0.1353, allocations: 159.1 kB / 454.4 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001538/0.1369, allocations: 0.9906 MB / 455.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.1371, allocations: 304.2 kB / 455.7 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001656/0.1373, allocations: 120.3 kB / 455.8 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.1389, allocations: 1.125 MB / 456.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.185e-05/0.1389, allocations: 7.875 kB / 456.9 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.4e-05/0.139, allocations: 44 kB / 457 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.139, allocations: 24 kB / 457 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.1403, allocations: 0.726 MB / 457.7 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005031/0.1453, allocations: 3.816 MB / 461.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.1468, allocations: 0.8443 MB / 462.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006003/0.1474, allocations: 418.3 kB / 462.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.757e-05/0.1475, allocations: 25.05 kB / 462.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.1476, allocations: 43.56 kB / 462.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=99): time 2.775e-06/0.1476, allocations: 3.938 kB / 462.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.001838/0.1495, allocations: 1.088 MB / 464 MB, free: 11.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001858/0.1496, allocations: 376.8 kB / 464.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.1507, allocations: 0.9143 MB / 465.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.307e-05/0.1508, allocations: 49.7 kB / 465.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004364/0.1512, allocations: 0.586 MB / 465.9 MB, free: 9.176 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002697/0.1515, allocations: 382.5 kB / 466.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003442/0.1518, allocations: 263.4 kB / 466.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.152, allocations: 361.9 kB / 466.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000594/0.1526, allocations: 355.9 kB / 467.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008998/0.1535, allocations: 0.7486 MB / 468 MB, free: 6.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/0.155, allocations: 1.08 MB / 469 MB, free: 5.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.976e-06/0.1551, allocations: 4 kB / 469.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.002192/0.1573, allocations: 1.273 MB / 470.3 MB, free: 4.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.398e-05/0.1573, allocations: 10.03 kB / 470.3 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.1573, allocations: 12 kB / 470.3 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.622e-05/0.1574, allocations: 16 kB / 470.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/0.1589, allocations: 343.9 kB / 470.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.134e-05/0.1589, allocations: 23.92 kB / 470.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006425/0.1596, allocations: 130.6 kB / 470.8 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.903e-05/0.1597, allocations: 59.94 kB / 470.9 MB, free: 3.824 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.0004445/0.1601, allocations: 285.3 kB / 471.2 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002182/0.1603, allocations: 126.4 kB / 471.3 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.1621, allocations: 1.049 MB / 472.4 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.1621, allocations: 8 kB / 472.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1621, allocations: 0 / 472.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.1621, allocations: 7.984 kB / 472.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/0.1634, allocations: 1.066 MB / 473.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.1634, allocations: 7.922 kB / 473.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00164/0.1651, allocations: 311.6 kB / 473.8 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.1651, allocations: 4 kB / 473.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-05/0.1652, allocations: 31.98 kB / 473.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.1652, allocations: 4 kB / 473.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1652, allocations: 0 / 473.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002158/0.1674, allocations: 1.447 MB / 475.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.1676, allocations: 211.2 kB / 475.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.1677, allocations: 28 kB / 475.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004615/0.1682, allocations: 31.98 kB / 475.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.1683, allocations: 76.89 kB / 475.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.718e-05/0.1684, allocations: 31.98 kB / 475.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007407/0.1691, allocations: 0.5865 MB / 476.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1691, allocations: 0 / 476.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009743/0.1701, allocations: 235.3 kB / 476.4 MB, free: 14.19 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.0002298/0.1704, allocations: 151.1 kB / 476.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00217/0.1726, allocations: 0.9407 MB / 477.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1726, allocations: 0 / 477.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.1736, allocations: 453.5 kB / 478 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009633/0.1746, allocations: 155.7 kB / 478.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006314/0.1809, allocations: 2.691 MB / 480.8 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009814/0.1819, allocations: 1.158 MB / 482 MB, free: 8.594 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001016/0.1829, allocations: 177.4 kB / 482.1 MB, free: 8.418 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003435/0.1833, allocations: 103.4 kB / 482.2 MB, free: 8.316 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1833, allocations: 0 / 482.2 MB, free: 8.316 MB / 366.1 MB Notification: Performance of Templates: time 0.0309/0.2142, allocations: 8.985 MB / 491.2 MB, free: 15.34 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)