Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.008193/0.008193, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.00154/0.00154, allocations: 194.2 kB / 16.67 MB, free: 5.977 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.911/1.911, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.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.001278/0.001278, allocations: 59 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.139, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009601/0.1487, allocations: 7.086 MB / 380.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005505/0.1542, allocations: 2.384 MB / 382.6 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001018/0.1554, allocations: 23.94 kB / 382.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001618/0.157, allocations: 0.4892 MB / 383.2 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001221/0.1582, allocations: 377 kB / 383.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005071/0.1587, allocations: 207.8 kB / 383.7 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.16, allocations: 1.206 MB / 384.9 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00068/0.1607, allocations: 0.5076 MB / 385.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005284/0.1612, allocations: 466.1 kB / 385.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005513/0.1618, allocations: 497.8 kB / 386.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.1619, allocations: 112 kB / 386.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000294/0.1622, allocations: 152 kB / 386.6 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001748/0.1624, allocations: 231.1 kB / 386.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004651/0.1629, allocations: 0.5404 MB / 387.4 MB, free: 3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00153/0.1644, allocations: 1.433 MB / 388.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.1644, allocations: 4 kB / 388.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.1644, allocations: 4 kB / 388.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.78e-05/0.1644, allocations: 0 / 388.9 MB, free: 1.555 MB / 318.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.002314/0.1668, allocations: 1.239 MB / 390.1 MB, free: 272 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1668, allocations: 12.03 kB / 390.1 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004839/0.1673, allocations: 143.6 kB / 390.2 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.1684, allocations: 0.6533 MB / 390.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.778e-05/0.1685, allocations: 58.38 kB / 391 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.1686, allocations: 80.28 kB / 391 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.1699, allocations: 0.7832 MB / 391.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/0.17, allocations: 4 kB / 391.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.246e-05/0.17, allocations: 32 kB / 391.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.1701, allocations: 20 kB / 391.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009591/0.171, allocations: 0.5192 MB / 392.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004091/0.1751, allocations: 3.379 MB / 395.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005254/0.1757, allocations: 226.6 kB / 396 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000243/0.1759, allocations: 116.7 kB / 396.1 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.835e-05/0.176, allocations: 7.938 kB / 396.1 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.176, allocations: 38.56 kB / 396.1 MB, free: 9.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.644e-06/0.176, allocations: 4 kB / 396.2 MB, free: 9.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002226/0.1783, allocations: 1.045 MB / 397.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.249e-05/0.1783, allocations: 77.11 kB / 397.3 MB, free: 8.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009812/0.1793, allocations: 0.7464 MB / 398 MB, free: 7.934 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.1794, allocations: 29.7 kB / 398 MB, free: 7.898 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003564/0.1797, allocations: 0.4904 MB / 398.5 MB, free: 7.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.643e-05/0.1798, allocations: 102.6 kB / 398.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.18, allocations: 114.2 kB / 398.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.1802, allocations: 378.8 kB / 399.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002564/0.1804, allocations: 129.2 kB / 399.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000445/0.1809, allocations: 410.2 kB / 399.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007519/0.1816, allocations: 0.5715 MB / 400.2 MB, free: 5.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1817, allocations: 4 kB / 400.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001/0.1827, allocations: 0.611 MB / 400.8 MB, free: 4.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.1827, allocations: 12 kB / 400.8 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.1827, allocations: 8 kB / 400.9 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001719/0.1829, allocations: 40.84 kB / 400.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004412/0.1833, allocations: 136.1 kB / 401 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.1845, allocations: 1.398 MB / 402.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004696/0.185, allocations: 35.89 kB / 402.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.745e-05/0.185, allocations: 28 kB / 402.5 MB, free: 3.008 MB / 334.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.0003371/0.1854, allocations: 233.6 kB / 402.7 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.1855, allocations: 71.16 kB / 402.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006393/0.1861, allocations: 325.4 kB / 403.1 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1861, allocations: 4 kB / 403.1 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1861, allocations: 0 / 403.1 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.1862, allocations: 7.922 kB / 403.1 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00168/0.1878, allocations: 1.098 MB / 404.2 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.1879, allocations: 0 / 404.2 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002606/0.1881, allocations: 59.89 kB / 404.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.11e-05/0.1882, allocations: 25.08 kB / 404.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.1883, allocations: 8 kB / 404.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.1893, allocations: 1.375 MB / 405.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1893, allocations: 7.938 kB / 405.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008796/0.1902, allocations: 0.5527 MB / 406.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002155/0.1904, allocations: 180.2 kB / 406.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.63e-05/0.1905, allocations: 8 kB / 406.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/0.1908, allocations: 19.98 kB / 406.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.76e-05/0.1909, allocations: 23.91 kB / 406.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.1909, allocations: 12 kB / 406.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007058/0.1916, allocations: 0.5029 MB / 407 MB, free: 14.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1916, allocations: 0 / 407 MB, free: 14.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007364/0.1924, allocations: 164 kB / 407.1 MB, free: 14.04 MB / 350.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.0003071/0.1927, allocations: 107.2 kB / 407.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.1937, allocations: 469.4 kB / 407.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.1938, allocations: 3.938 kB / 407.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003754/0.1941, allocations: 238.6 kB / 407.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009372/0.1951, allocations: 179 kB / 408.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.1979, allocations: 1.423 MB / 409.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006852/0.1986, allocations: 0.9487 MB / 410.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003106/0.1989, allocations: 90.02 kB / 410.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.199, allocations: 47.44 kB / 410.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.199, allocations: 0 / 410.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Templates: time 0.01776/0.2168, allocations: 8.419 MB / 419 MB, free: 2.012 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)