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.001471/0.001471, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.002025/0.002025, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.946/1.946, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001347/0.001347, allocations: 55.92 kB / 280 MB, free: 3.16 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1397, allocations: 46.63 MB / 326.6 MB, free: 4.457 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01085/0.1506, allocations: 7.09 MB / 333.7 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005686/0.1563, allocations: 2.385 MB / 336.1 MB, free: 10.92 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/0.1575, allocations: 19.94 kB / 336.1 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00174/0.1593, allocations: 497 kB / 336.6 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001796/0.1611, allocations: 385 kB / 337 MB, free: 10.03 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006967/0.1618, allocations: 215.7 kB / 337.2 MB, free: 9.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002196/0.164, allocations: 1.191 MB / 338.4 MB, free: 8.625 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009178/0.165, allocations: 0.4998 MB / 338.9 MB, free: 8.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009678/0.1659, allocations: 458.2 kB / 339.3 MB, free: 7.656 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006605/0.1666, allocations: 0.4899 MB / 339.8 MB, free: 7.164 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.1668, allocations: 112 kB / 339.9 MB, free: 7.055 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004062/0.1672, allocations: 152 kB / 340.1 MB, free: 6.906 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002085/0.1674, allocations: 231.2 kB / 340.3 MB, free: 6.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005598/0.168, allocations: 0.5404 MB / 340.8 MB, free: 6.137 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001498/0.1695, allocations: 1.417 MB / 342.3 MB, free: 4.715 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1695, allocations: 4 kB / 342.3 MB, free: 4.711 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1695, allocations: 0 / 342.3 MB, free: 4.711 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.1695, allocations: 4 kB / 342.3 MB, free: 4.707 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.002142/0.1717, allocations: 1.25 MB / 343.5 MB, free: 3.402 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1717, allocations: 12.03 kB / 343.5 MB, free: 3.391 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004956/0.1722, allocations: 139.7 kB / 343.7 MB, free: 3.254 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.1732, allocations: 0.6338 MB / 344.3 MB, free: 2.582 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.074e-05/0.1733, allocations: 66.38 kB / 344.4 MB, free: 2.516 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.1734, allocations: 80.36 kB / 344.4 MB, free: 2.438 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.1748, allocations: 0.7793 MB / 345.2 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.206e-05/0.1749, allocations: 11.91 kB / 345.2 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.175e-05/0.1749, allocations: 28 kB / 345.3 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.175, allocations: 20 kB / 345.3 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009898/0.176, allocations: 0.5192 MB / 345.8 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004424/0.1804, allocations: 3.391 MB / 349.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004955/0.1809, allocations: 234.5 kB / 349.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002364/0.1812, allocations: 116.8 kB / 349.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.1812, allocations: 4 kB / 349.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.1812, allocations: 38.56 kB / 349.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.655e-06/0.1813, allocations: 0 / 349.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.00222/0.1835, allocations: 1.039 MB / 350.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.1835, allocations: 81.11 kB / 350.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009227/0.1845, allocations: 0.7387 MB / 351.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.1845, allocations: 37.64 kB / 351.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003384/0.1849, allocations: 498.2 kB / 352 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.174e-05/0.1849, allocations: 106.5 kB / 352.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.1851, allocations: 118.2 kB / 352.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1853, allocations: 374.8 kB / 352.5 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002743/0.1855, allocations: 129.2 kB / 352.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.186, allocations: 418.1 kB / 353.1 MB, free: 9.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000734/0.1867, allocations: 0.5716 MB / 353.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.1867, allocations: 4 kB / 353.7 MB, free: 8.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001051/0.1878, allocations: 0.6107 MB / 354.3 MB, free: 7.941 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.1878, allocations: 8 kB / 354.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.1878, allocations: 12 kB / 354.3 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001726/0.188, allocations: 37.34 kB / 354.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004193/0.1884, allocations: 135.8 kB / 354.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.1897, allocations: 1.398 MB / 355.9 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006214/0.1904, allocations: 27.98 kB / 355.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.754e-05/0.1904, allocations: 32 kB / 355.9 MB, free: 6.156 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.0005661/0.191, allocations: 237.6 kB / 356.1 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/0.1912, allocations: 79.05 kB / 356.2 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007609/0.192, allocations: 321.6 kB / 356.5 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.192, allocations: 4 kB / 356.5 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.192, allocations: 0 / 356.5 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.192, allocations: 48 / 356.5 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001766/0.1938, allocations: 1.109 MB / 357.6 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.1938, allocations: 4 kB / 357.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.1941, allocations: 59.89 kB / 357.7 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.803e-05/0.1942, allocations: 20.86 kB / 357.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.1942, allocations: 11.98 kB / 357.7 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009591/0.1952, allocations: 1.371 MB / 359.1 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1952, allocations: 4.031 kB / 359.1 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008545/0.1961, allocations: 0.5559 MB / 359.7 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002292/0.1963, allocations: 176.2 kB / 359.8 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.757e-05/0.1964, allocations: 8 kB / 359.9 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.1967, allocations: 19.98 kB / 359.9 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.282e-05/0.1968, allocations: 31.84 kB / 359.9 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.1968, allocations: 8 kB / 359.9 MB, free: 1.844 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006253/0.1974, allocations: 0.5107 MB / 360.4 MB, free: 1.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1974, allocations: 0 / 360.4 MB, free: 1.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006785/0.1981, allocations: 156 kB / 360.6 MB, free: 1.188 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.0002045/0.1983, allocations: 115.2 kB / 360.7 MB, free: 1.066 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009232/0.1993, allocations: 466.7 kB / 361.1 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.1993, allocations: 1.938 kB / 361.1 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.1997, allocations: 242.9 kB / 361.4 MB, free: 356 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009548/0.2006, allocations: 190.9 kB / 361.6 MB, free: 164 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.203, allocations: 1.439 MB / 363 MB, free: 14.67 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/0.2035, allocations: 0.9411 MB / 363.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003397/0.2038, allocations: 90.02 kB / 364 MB, free: 13.61 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.2039, allocations: 47.44 kB / 364.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2039, allocations: 0 / 364.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of Templates: time 0.01592/0.2199, allocations: 8.126 MB / 372.2 MB, free: 5.441 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)