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.001305/0.001305, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00162/0.001621, allocations: 196.6 kB / 16.26 MB, free: 6.617 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.491/1.491, allocations: 205.1 MB / 222.1 MB, free: 4.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05477/0.05477, allocations: 10.74 MB / 280.2 MB, free: 10.68 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.001382/0.001382, allocations: 67.84 kB / 340 MB, free: 23.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1191, allocations: 49.01 MB / 389.1 MB, free: 6.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.ProcessControl): time 0.005593/0.1248, allocations: 4.167 MB / 393.2 MB, free: 2.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002912/0.1277, allocations: 1.665 MB / 394.9 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004045/0.1281, allocations: 67.38 kB / 395 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002695/0.1284, allocations: 98.81 kB / 395 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004346/0.1289, allocations: 119 kB / 395.2 MB, free: 460 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001397/0.1303, allocations: 0.7882 MB / 396 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001316/0.1316, allocations: 1.493 MB / 397.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005867/0.1322, allocations: 428.3 kB / 397.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005912/0.1328, allocations: 0.6299 MB / 398.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005271/0.1333, allocations: 0.5709 MB / 399.1 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001526/0.1335, allocations: 124 kB / 399.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001319/0.1336, allocations: 120 kB / 399.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002211/0.1339, allocations: 318.7 kB / 399.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004011/0.1343, allocations: 0.6017 MB / 400.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009727/0.1352, allocations: 1.238 MB / 401.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.1353, allocations: 0 / 401.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1353, allocations: 4 kB / 401.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.1353, allocations: 0 / 401.5 MB, free: 10.11 MB / 302.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.00271/0.138, allocations: 1.682 MB / 403.1 MB, free: 8.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.859e-05/0.1381, allocations: 12.03 kB / 403.2 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002253/0.1383, allocations: 163 kB / 403.3 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.1395, allocations: 0.8854 MB / 404.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000244/0.1398, allocations: 304.2 kB / 404.5 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/0.1399, allocations: 120.2 kB / 404.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.1416, allocations: 1.114 MB / 405.7 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.384e-05/0.1416, allocations: 11.78 kB / 405.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.982e-05/0.1417, allocations: 44 kB / 405.8 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.486e-05/0.1417, allocations: 24 kB / 405.8 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.143, allocations: 0.7299 MB / 406.5 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005224/0.1482, allocations: 3.847 MB / 410.4 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.1497, allocations: 0.8371 MB / 411.2 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005578/0.1503, allocations: 422.3 kB / 411.6 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.382e-05/0.1503, allocations: 20.98 kB / 411.6 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.1504, allocations: 43.56 kB / 411.7 MB, free: 15.47 MB / 318.1 MB Notification: Performance of pre-optimization done (n=99): time 4.96e-06/0.1504, allocations: 3.984 kB / 411.7 MB, free: 15.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.001869/0.1523, allocations: 1.088 MB / 412.8 MB, free: 14.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002578/0.1525, allocations: 376.8 kB / 413.2 MB, free: 13.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.1536, allocations: 0.9107 MB / 414.1 MB, free: 13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.732e-05/0.1537, allocations: 49.7 kB / 414.1 MB, free: 12.94 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005383/0.1542, allocations: 0.5936 MB / 414.7 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003571/0.1546, allocations: 378.5 kB / 415.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003662/0.155, allocations: 259.5 kB / 415.3 MB, free: 11.71 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002237/0.1552, allocations: 361.9 kB / 415.7 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005802/0.1558, allocations: 355.9 kB / 416 MB, free: 11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009262/0.1567, allocations: 0.7602 MB / 416.8 MB, free: 10.08 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.1581, allocations: 1.072 MB / 417.9 MB, free: 8.871 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.1581, allocations: 8 kB / 417.9 MB, free: 8.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.001847/0.1599, allocations: 1.269 MB / 419.1 MB, free: 7.586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.16, allocations: 10.84 kB / 419.1 MB, free: 7.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.16, allocations: 16 kB / 419.2 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.988e-05/0.16, allocations: 16 kB / 419.2 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/0.1615, allocations: 339.5 kB / 419.5 MB, free: 7.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.858e-05/0.1615, allocations: 23.92 kB / 419.5 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006448/0.1622, allocations: 130.6 kB / 419.7 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-05/0.1623, allocations: 60 kB / 419.7 MB, free: 7.004 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.0004551/0.1627, allocations: 278.2 kB / 420 MB, free: 6.723 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.1629, allocations: 126.4 kB / 420.1 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/0.1646, allocations: 1.061 MB / 421.2 MB, free: 5.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.1646, allocations: 8 kB / 421.2 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.1646, allocations: 0 / 421.2 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.1646, allocations: 7.984 kB / 421.2 MB, free: 5.504 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.1659, allocations: 1.063 MB / 422.3 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1659, allocations: 0 / 422.3 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/0.1677, allocations: 315.6 kB / 422.6 MB, free: 4.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.1677, allocations: 4 kB / 422.6 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.578e-05/0.1678, allocations: 35.92 kB / 422.6 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.421e-06/0.1678, allocations: 4 kB / 422.6 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.1678, allocations: 3.984 kB / 422.6 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002126/0.17, allocations: 1.455 MB / 424.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.1701, allocations: 207.2 kB / 424.3 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.1703, allocations: 28 kB / 424.3 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005291/0.1708, allocations: 27.98 kB / 424.3 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.171, allocations: 76.89 kB / 424.4 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.382e-05/0.171, allocations: 35.92 kB / 424.4 MB, free: 2.184 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007024/0.1717, allocations: 0.5865 MB / 425 MB, free: 1.59 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1718, allocations: 0 / 425 MB, free: 1.59 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007328/0.1725, allocations: 231.4 kB / 425.2 MB, free: 1.363 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.0001934/0.1727, allocations: 151.1 kB / 425.4 MB, free: 1.207 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002181/0.1749, allocations: 0.9911 MB / 426.4 MB, free: 220 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1749, allocations: 0 / 426.4 MB, free: 220 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1902/0.3651, allocations: 454.5 kB / 426.8 MB, free: 42.96 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.3665, allocations: 146.8 kB / 427 MB, free: 42.95 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006598/0.3731, allocations: 3.204 MB / 430.2 MB, free: 41.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.3742, allocations: 1.161 MB / 431.3 MB, free: 40.67 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001358/0.3755, allocations: 184.5 kB / 431.5 MB, free: 40.64 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004676/0.376, allocations: 102.8 kB / 431.6 MB, free: 40.63 MB / 318.1 MB Notification: Performance of SimCode: time 1.553e-06/0.376, allocations: 0 / 431.6 MB, free: 40.63 MB / 318.1 MB Notification: Performance of Templates: time 0.02981/0.4059, allocations: 8.804 MB / 440.4 MB, free: 38.25 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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.ProcessControl.pipe 2>&1)