Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001212, allocations: 111.8 kB / 16.63 MB, free: 6.953 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.001056/0.001056, allocations: 193.8 kB / 17.55 MB, free: 6.043 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.813/1.813, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.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.001365/0.001365, allocations: 39.94 kB / 279.5 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1373, allocations: 46.63 MB / 326.1 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009345/0.1467, allocations: 7.074 MB / 333.2 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005614/0.1524, allocations: 2.357 MB / 335.6 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001359/0.1539, allocations: 20 kB / 335.6 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001689/0.1556, allocations: 453.6 kB / 336 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001575/0.1571, allocations: 325.7 kB / 336.3 MB, free: 10.51 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00053/0.1577, allocations: 179.9 kB / 336.5 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001573/0.1593, allocations: 1.203 MB / 337.7 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00076/0.16, allocations: 0.4998 MB / 338.2 MB, free: 8.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006905/0.1607, allocations: 462.1 kB / 338.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005037/0.1613, allocations: 0.4939 MB / 339.2 MB, free: 7.652 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.1614, allocations: 112 kB / 339.3 MB, free: 7.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003263/0.1617, allocations: 156 kB / 339.4 MB, free: 7.391 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001986/0.1619, allocations: 223.2 kB / 339.7 MB, free: 7.172 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005196/0.1625, allocations: 0.5443 MB / 340.2 MB, free: 6.625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001575/0.164, allocations: 1.413 MB / 341.6 MB, free: 5.207 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.017e-05/0.1641, allocations: 7.938 kB / 341.6 MB, free: 5.199 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1641, allocations: 0 / 341.6 MB, free: 5.199 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.1641, allocations: 0 / 341.6 MB, free: 5.199 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002346/0.1665, allocations: 1.25 MB / 342.9 MB, free: 3.895 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.186e-05/0.1665, allocations: 12.03 kB / 342.9 MB, free: 3.883 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005285/0.1671, allocations: 143.7 kB / 343 MB, free: 3.742 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.1681, allocations: 0.6338 MB / 343.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.562e-05/0.1682, allocations: 58.38 kB / 343.7 MB, free: 3.012 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.1683, allocations: 80.38 kB / 343.8 MB, free: 2.934 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.1696, allocations: 0.7793 MB / 344.6 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.391e-05/0.1697, allocations: 7.906 kB / 344.6 MB, free: 2.117 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.821e-05/0.1698, allocations: 36 kB / 344.6 MB, free: 2.082 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.589e-05/0.1698, allocations: 20 kB / 344.6 MB, free: 2.062 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009953/0.1708, allocations: 0.523 MB / 345.2 MB, free: 1.539 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004308/0.1751, allocations: 3.387 MB / 348.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005334/0.1757, allocations: 230.5 kB / 348.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002353/0.1759, allocations: 112.8 kB / 348.9 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.747e-05/0.176, allocations: 8 kB / 348.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.176, allocations: 30.56 kB / 348.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.344e-06/0.176, allocations: 0 / 348.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.00224/0.1783, allocations: 1.055 MB / 350 MB, free: 12.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.1784, allocations: 85.11 kB / 350.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009617/0.1793, allocations: 0.7386 MB / 350.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.1794, allocations: 33.7 kB / 350.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000406/0.1798, allocations: 494.2 kB / 351.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.429e-05/0.1799, allocations: 106.5 kB / 351.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.18, allocations: 114.2 kB / 351.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002364/0.1803, allocations: 378.8 kB / 351.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.1806, allocations: 129.2 kB / 352 MB, free: 10.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004998/0.1811, allocations: 414.2 kB / 352.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007683/0.1818, allocations: 0.5714 MB / 353 MB, free: 9.062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1819, allocations: 8 kB / 353 MB, free: 9.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001053/0.1829, allocations: 0.6074 MB / 353.6 MB, free: 8.438 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.537e-05/0.183, allocations: 8 kB / 353.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.107e-05/0.183, allocations: 19.97 kB / 353.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001907/0.1832, allocations: 32.8 kB / 353.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004348/0.1837, allocations: 139.8 kB / 353.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.1849, allocations: 1.39 MB / 355.2 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004762/0.1854, allocations: 36.03 kB / 355.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.894e-05/0.1855, allocations: 35.94 kB / 355.3 MB, free: 6.641 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003806/0.1858, allocations: 241.5 kB / 355.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.186, allocations: 71.06 kB / 355.6 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000647/0.1866, allocations: 325.3 kB / 355.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1866, allocations: 4 kB / 355.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.1866, allocations: 0 / 355.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.1867, allocations: 4 kB / 355.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/0.1884, allocations: 1.102 MB / 357 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1884, allocations: 0 / 357 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002592/0.1886, allocations: 60.19 kB / 357.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.223e-05/0.1887, allocations: 24.83 kB / 357.1 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.1888, allocations: 11.98 kB / 357.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009728/0.1897, allocations: 1.371 MB / 358.5 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1898, allocations: 0 / 358.5 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008134/0.1906, allocations: 0.5598 MB / 359 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002077/0.1908, allocations: 172.3 kB / 359.2 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.513e-05/0.1909, allocations: 8 kB / 359.2 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003006/0.1912, allocations: 19.97 kB / 359.2 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.982e-05/0.1913, allocations: 23.92 kB / 359.2 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.1913, allocations: 23.92 kB / 359.3 MB, free: 2.328 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006355/0.1919, allocations: 0.4991 MB / 359.8 MB, free: 1.836 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.192, allocations: 0 / 359.8 MB, free: 1.836 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006853/0.1926, allocations: 163.9 kB / 359.9 MB, free: 1.676 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003212/0.193, allocations: 115.2 kB / 360 MB, free: 1.555 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009889/0.194, allocations: 473 kB / 360.5 MB, free: 1.082 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.194, allocations: 4 kB / 360.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003731/0.1944, allocations: 238.5 kB / 360.7 MB, free: 0.832 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.1955, allocations: 184.8 kB / 360.9 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002752/0.1982, allocations: 1.764 MB / 362.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007731/0.199, allocations: 0.9411 MB / 363.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000387/0.1994, allocations: 86.03 kB / 363.7 MB, free: 13.78 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.1995, allocations: 43.44 kB / 363.7 MB, free: 13.74 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1995, allocations: 0 / 363.7 MB, free: 13.74 MB / 318.1 MB Notification: Performance of Templates: time 0.0173/0.2168, allocations: 8.046 MB / 371.8 MB, free: 5.695 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)