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.001559/0.001569, allocations: 107.2 kB / 16.51 MB, free: 6.715 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.001577/0.001577, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.91/1.91, allocations: 205.1 MB / 223.3 MB, free: 12.41 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.001247/0.001247, allocations: 51.92 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1368, allocations: 46.63 MB / 326 MB, free: 4.871 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009604/0.1465, allocations: 7.066 MB / 333 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005368/0.1519, allocations: 2.357 MB / 335.4 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006401/0.1526, allocations: 19.94 kB / 335.4 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00147/0.1541, allocations: 449.7 kB / 335.9 MB, free: 10.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001089/0.1552, allocations: 333.6 kB / 336.2 MB, free: 10.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005116/0.1557, allocations: 171.9 kB / 336.3 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00121/0.157, allocations: 1.144 MB / 337.5 MB, free: 9.281 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006151/0.1576, allocations: 442.7 kB / 337.9 MB, free: 8.828 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004767/0.1581, allocations: 418.1 kB / 338.3 MB, free: 8.418 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004624/0.1585, allocations: 469.8 kB / 338.8 MB, free: 7.957 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.1587, allocations: 72 kB / 338.9 MB, free: 7.887 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002884/0.159, allocations: 108 kB / 339 MB, free: 7.781 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.1591, allocations: 187.1 kB / 339.1 MB, free: 7.598 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004616/0.1596, allocations: 0.5013 MB / 339.7 MB, free: 7.094 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001242/0.1608, allocations: 1.386 MB / 341 MB, free: 5.703 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.1608, allocations: 0 / 341 MB, free: 5.703 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1609, allocations: 0 / 341 MB, free: 5.703 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1609, allocations: 0 / 341 MB, free: 5.703 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.002269/0.1631, allocations: 1.25 MB / 342.3 MB, free: 4.402 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.1632, allocations: 8.031 kB / 342.3 MB, free: 4.395 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005265/0.1637, allocations: 139.7 kB / 342.4 MB, free: 4.258 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.1648, allocations: 0.6416 MB / 343.1 MB, free: 3.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.598e-05/0.1649, allocations: 58.38 kB / 343.1 MB, free: 3.516 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.165, allocations: 76.38 kB / 343.2 MB, free: 3.441 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.1665, allocations: 0.7871 MB / 344 MB, free: 2.621 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.299e-05/0.1666, allocations: 3.906 kB / 344 MB, free: 2.617 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.778e-05/0.1667, allocations: 32 kB / 344 MB, free: 2.586 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.775e-05/0.1667, allocations: 23.94 kB / 344.1 MB, free: 2.562 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.1678, allocations: 0.5153 MB / 344.6 MB, free: 2.051 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004824/0.1727, allocations: 3.407 MB / 348 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005277/0.1732, allocations: 230.5 kB / 348.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002561/0.1735, allocations: 116.8 kB / 348.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.231e-05/0.1735, allocations: 4 kB / 348.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.1736, allocations: 30.56 kB / 348.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 3.357e-06/0.1736, allocations: 0 / 348.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002335/0.1759, allocations: 1.051 MB / 349.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.176, allocations: 81.11 kB / 349.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000962/0.177, allocations: 0.7387 MB / 350.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.177, allocations: 29.7 kB / 350.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00038/0.1774, allocations: 498.2 kB / 350.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.599e-05/0.1775, allocations: 114.5 kB / 350.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.1777, allocations: 118.2 kB / 351 MB, free: 11.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.1779, allocations: 370.8 kB / 351.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002977/0.1782, allocations: 129.2 kB / 351.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/0.1787, allocations: 410.2 kB / 351.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008454/0.1795, allocations: 0.5753 MB / 352.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.1795, allocations: 0 / 352.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001119/0.1806, allocations: 0.6147 MB / 353 MB, free: 8.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.1807, allocations: 8 kB / 353 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.1807, allocations: 12 kB / 353.1 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/0.1809, allocations: 33.47 kB / 353.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004628/0.1814, allocations: 147.8 kB / 353.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.1826, allocations: 1.291 MB / 354.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004991/0.1831, allocations: 27.98 kB / 354.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.207e-05/0.1832, allocations: 32 kB / 354.6 MB, free: 7.25 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.0003732/0.1836, allocations: 241.6 kB / 354.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/0.1838, allocations: 75.05 kB / 354.9 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006815/0.1845, allocations: 321.5 kB / 355.2 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.1845, allocations: 0 / 355.2 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.1845, allocations: 3.938 kB / 355.2 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1845, allocations: 7.984 kB / 355.2 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.1864, allocations: 1.098 MB / 356.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.1864, allocations: 224 / 356.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003628/0.1868, allocations: 63.89 kB / 356.4 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.576e-05/0.1869, allocations: 20.86 kB / 356.4 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.362e-05/0.1869, allocations: 8 kB / 356.4 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.1882, allocations: 1.272 MB / 357.7 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/0.1882, allocations: 7.969 kB / 357.7 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.1893, allocations: 0.5599 MB / 358.2 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002437/0.1896, allocations: 180.2 kB / 358.4 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.457e-05/0.1897, allocations: 11.98 kB / 358.4 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003122/0.19, allocations: 19.92 kB / 358.5 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.1901, allocations: 27.91 kB / 358.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.1902, allocations: 8 kB / 358.5 MB, free: 3.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007926/0.191, allocations: 0.4991 MB / 359 MB, free: 2.547 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.191, allocations: 4 kB / 359 MB, free: 2.543 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007959/0.1918, allocations: 160 kB / 359.1 MB, free: 2.387 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.0003673/0.1922, allocations: 119.1 kB / 359.3 MB, free: 2.262 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.1933, allocations: 453.3 kB / 359.7 MB, free: 1.809 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.1933, allocations: 192 / 359.7 MB, free: 1.809 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004967/0.1938, allocations: 242.5 kB / 359.9 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.1952, allocations: 167.5 kB / 360.1 MB, free: 1.398 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003093/0.1983, allocations: 1.762 MB / 361.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007832/0.1991, allocations: 0.9375 MB / 362.8 MB, free: 14.62 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003648/0.1994, allocations: 90.03 kB / 362.9 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.1996, allocations: 51.42 kB / 362.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1996, allocations: 0 / 362.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of Templates: time 0.01852/0.2181, allocations: 7.719 MB / 370.7 MB, free: 6.766 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)