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.00101/0.00101, allocations: 87.09 kB / 16.65 MB, free: 6.535 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.001314/0.001315, allocations: 176 kB / 17.56 MB, free: 6.18 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.957/1.957, allocations: 205.4 MB / 223.7 MB, free: 12.98 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.0005168/0.0005169, allocations: 12 kB / 280.7 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.141, allocations: 47.58 MB / 328.3 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009309/0.1504, allocations: 6.614 MB / 334.9 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006286/0.1568, allocations: 2.338 MB / 337.3 MB, free: 10.74 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008618/0.1577, allocations: 19.94 kB / 337.3 MB, free: 10.72 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001656/0.1594, allocations: 445.7 kB / 337.7 MB, free: 10.28 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001323/0.1607, allocations: 333.6 kB / 338.1 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005231/0.1612, allocations: 175.8 kB / 338.2 MB, free: 9.781 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001584/0.1628, allocations: 1.14 MB / 339.4 MB, free: 8.637 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007493/0.1636, allocations: 438.7 kB / 339.8 MB, free: 8.188 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006802/0.1643, allocations: 382.2 kB / 340.2 MB, free: 7.812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005422/0.1648, allocations: 433.7 kB / 340.6 MB, free: 7.387 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.165, allocations: 60 kB / 340.7 MB, free: 7.328 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002869/0.1653, allocations: 83.98 kB / 340.7 MB, free: 7.246 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001677/0.1654, allocations: 159.2 kB / 340.9 MB, free: 7.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005797/0.166, allocations: 0.4991 MB / 341.4 MB, free: 6.582 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001474/0.1675, allocations: 1.35 MB / 342.7 MB, free: 5.227 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.207e-06/0.1675, allocations: 0 / 342.7 MB, free: 5.227 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.148e-06/0.1675, allocations: 0 / 342.7 MB, free: 5.227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.1676, allocations: 0 / 342.7 MB, free: 5.227 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.002302/0.1699, allocations: 1.087 MB / 343.8 MB, free: 4.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.571e-05/0.17, allocations: 12.03 kB / 343.8 MB, free: 4.078 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006336/0.1706, allocations: 147.5 kB / 344 MB, free: 3.934 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.1718, allocations: 0.6416 MB / 344.6 MB, free: 3.246 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.578e-05/0.1719, allocations: 54.38 kB / 344.7 MB, free: 3.195 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.172, allocations: 80.28 kB / 344.8 MB, free: 3.117 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.1737, allocations: 0.791 MB / 345.5 MB, free: 2.293 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.537e-05/0.1737, allocations: 4 kB / 345.5 MB, free: 2.289 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.668e-05/0.1738, allocations: 36 kB / 345.6 MB, free: 2.254 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-05/0.1739, allocations: 16 kB / 345.6 MB, free: 2.238 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.1751, allocations: 0.5387 MB / 346.1 MB, free: 1.703 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004894/0.18, allocations: 3.418 MB / 349.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005552/0.1806, allocations: 234.5 kB / 349.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002526/0.1808, allocations: 120.8 kB / 349.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.1809, allocations: 4 kB / 349.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.1809, allocations: 38.5 kB / 349.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.515e-06/0.1809, allocations: 0 / 349.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002624/0.1836, allocations: 1.086 MB / 351 MB, free: 12.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/0.1836, allocations: 81.11 kB / 351.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009932/0.1846, allocations: 0.7349 MB / 351.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.1847, allocations: 37.64 kB / 351.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004428/0.1851, allocations: 0.4903 MB / 352.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.741e-05/0.1852, allocations: 98.64 kB / 352.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.083e-05/0.1853, allocations: 57.69 kB / 352.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002053/0.1855, allocations: 370.8 kB / 352.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003045/0.1859, allocations: 137.2 kB / 353 MB, free: 10.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000617/0.1865, allocations: 422.2 kB / 353.4 MB, free: 9.906 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009579/0.1875, allocations: 0.5832 MB / 354 MB, free: 9.188 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1875, allocations: 4 kB / 354 MB, free: 9.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001215/0.1887, allocations: 0.6305 MB / 354.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.1887, allocations: 15.94 kB / 354.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.1888, allocations: 8 kB / 354.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002057/0.189, allocations: 33.23 kB / 354.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004666/0.1895, allocations: 151.7 kB / 354.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.1909, allocations: 1.292 MB / 356.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005641/0.1915, allocations: 35.89 kB / 356.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.566e-05/0.1916, allocations: 32 kB / 356.2 MB, free: 6.848 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.0005335/0.1921, allocations: 245.5 kB / 356.5 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.1922, allocations: 71.25 kB / 356.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007696/0.193, allocations: 333.4 kB / 356.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.193, allocations: 8 kB / 356.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.193, allocations: 7.875 kB / 356.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1931, allocations: 3.984 kB / 356.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/0.1949, allocations: 1.106 MB / 358 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.195, allocations: 4.219 kB / 358 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002831/0.1953, allocations: 67.89 kB / 358 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.28e-05/0.1954, allocations: 20.86 kB / 358.1 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.1954, allocations: 8 kB / 358.1 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001141/0.1965, allocations: 1.272 MB / 359.3 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/0.1966, allocations: 15.89 kB / 359.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009996/0.1976, allocations: 0.5755 MB / 359.9 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002651/0.1978, allocations: 172.2 kB / 360.1 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.982e-05/0.1979, allocations: 11.98 kB / 360.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003131/0.1982, allocations: 27.98 kB / 360.1 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.1984, allocations: 23.97 kB / 360.2 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.1984, allocations: 4 kB / 360.2 MB, free: 2.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007982/0.1992, allocations: 0.4991 MB / 360.7 MB, free: 2.094 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1992, allocations: 0 / 360.7 MB, free: 2.094 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000903/0.2001, allocations: 168 kB / 360.8 MB, free: 1.93 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.0003969/0.2006, allocations: 119.1 kB / 360.9 MB, free: 1.805 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.2019, allocations: 480.5 kB / 361.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.2019, allocations: 0 / 361.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004891/0.2024, allocations: 243.7 kB / 361.7 MB, free: 1.074 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.2037, allocations: 175 kB / 361.8 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00305/0.2068, allocations: 1.833 MB / 363.7 MB, free: 15.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006315/0.2074, allocations: 0.9414 MB / 364.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003911/0.2078, allocations: 90.02 kB / 364.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.2079, allocations: 47.44 kB / 364.7 MB, free: 13.91 MB / 318.1 MB Notification: Performance of SimCode: time 1.583e-06/0.2079, allocations: 4 kB / 364.7 MB, free: 13.91 MB / 318.1 MB Notification: Performance of Templates: time 0.01813/0.2261, allocations: 7.656 MB / 372.4 MB, free: 6.254 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)