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.00166/0.00166, allocations: 93.5 kB / 16.3 MB, free: 6.457 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.002039/0.002039, allocations: 184.6 kB / 17.2 MB, free: 6.34 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.912/1.912, allocations: 205.4 MB / 223.4 MB, free: 13.16 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.000459/0.0004591, allocations: 9 kB / 280.1 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1384, allocations: 47.58 MB / 327.7 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007826/0.1463, allocations: 5.679 MB / 333.4 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004884/0.1512, allocations: 2.27 MB / 335.7 MB, free: 12.1 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00119/0.1524, allocations: 16 kB / 335.7 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001409/0.1539, allocations: 422 kB / 336.1 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001109/0.155, allocations: 402.8 kB / 336.5 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.1554, allocations: 119.9 kB / 336.6 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001214/0.1566, allocations: 0.8507 MB / 337.4 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005563/0.1572, allocations: 364.6 kB / 337.8 MB, free: 9.941 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003957/0.1576, allocations: 338.6 kB / 338.1 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004128/0.158, allocations: 398.1 kB / 338.5 MB, free: 9.219 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.427e-05/0.1581, allocations: 48 kB / 338.6 MB, free: 9.172 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002559/0.1584, allocations: 91.91 kB / 338.7 MB, free: 9.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.1585, allocations: 139.4 kB / 338.8 MB, free: 8.945 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.1587, allocations: 217.2 kB / 339 MB, free: 8.727 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009533/0.1597, allocations: 1.079 MB / 340.1 MB, free: 7.645 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.1597, allocations: 0 / 340.1 MB, free: 7.645 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1597, allocations: 4 kB / 340.1 MB, free: 7.641 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.382e-05/0.1597, allocations: 0 / 340.1 MB, free: 7.641 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.001712/0.1614, allocations: 1.087 MB / 341.2 MB, free: 6.504 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1615, allocations: 12.03 kB / 341.2 MB, free: 6.492 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003663/0.1618, allocations: 130.7 kB / 341.3 MB, free: 6.363 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009521/0.1628, allocations: 0.6211 MB / 341.9 MB, free: 5.695 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.778e-05/0.1629, allocations: 61.94 kB / 342 MB, free: 5.637 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.163, allocations: 80 kB / 342.1 MB, free: 5.559 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.1643, allocations: 0.7754 MB / 342.8 MB, free: 4.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.959e-05/0.1644, allocations: 3.906 kB / 342.8 MB, free: 4.746 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.515e-05/0.1644, allocations: 32 kB / 342.9 MB, free: 4.715 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.108e-05/0.1645, allocations: 20 kB / 342.9 MB, free: 4.695 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009738/0.1655, allocations: 0.5231 MB / 343.4 MB, free: 4.176 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00422/0.1697, allocations: 3.352 MB / 346.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004895/0.1702, allocations: 242.1 kB / 347 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.983e-05/0.1702, allocations: 3.984 kB / 347 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.871e-05/0.1703, allocations: 46.55 kB / 347.1 MB, free: 324 kB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.934e-06/0.1703, allocations: 0 / 347.1 MB, free: 324 kB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.002163/0.1725, allocations: 1.079 MB / 348.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.1725, allocations: 77.11 kB / 348.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008853/0.1734, allocations: 0.6801 MB / 348.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.1735, allocations: 33.7 kB / 348.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003722/0.1739, allocations: 0.4903 MB / 349.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.468e-05/0.1739, allocations: 102.6 kB / 349.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.752e-05/0.174, allocations: 8 kB / 349.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.1742, allocations: 382.7 kB / 349.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002794/0.1745, allocations: 133.2 kB / 350 MB, free: 13.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004744/0.1749, allocations: 418.2 kB / 350.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000351/0.1753, allocations: 191.8 kB / 350.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.1753, allocations: 8 kB / 350.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001035/0.1764, allocations: 0.6109 MB / 351.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.008e-05/0.1764, allocations: 11.94 kB / 351.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.1764, allocations: 15.94 kB / 351.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002007/0.1766, allocations: 33.19 kB / 351.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004625/0.1771, allocations: 147.8 kB / 351.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.1785, allocations: 1.292 MB / 352.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/0.179, allocations: 39.94 kB / 352.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.087e-05/0.1791, allocations: 32 kB / 352.8 MB, free: 10.15 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004849/0.1796, allocations: 237.7 kB / 353 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.1797, allocations: 79.05 kB / 353.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007249/0.1804, allocations: 337.9 kB / 353.5 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.1804, allocations: 4 kB / 353.5 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1805, allocations: 3.953 kB / 353.5 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.1805, allocations: 4 kB / 353.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002039/0.1825, allocations: 1.078 MB / 354.5 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1825, allocations: 8.156 kB / 354.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002866/0.1828, allocations: 59.91 kB / 354.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001127/0.183, allocations: 24.84 kB / 354.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/0.183, allocations: 8 kB / 354.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/0.1841, allocations: 1.276 MB / 355.9 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.1841, allocations: 4.031 kB / 355.9 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.1852, allocations: 0.6537 MB / 356.6 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.1854, allocations: 160.3 kB / 356.7 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.219e-05/0.1855, allocations: 11.98 kB / 356.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000288/0.1857, allocations: 31.94 kB / 356.8 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.617e-05/0.1858, allocations: 27.98 kB / 356.8 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.1859, allocations: 8 kB / 356.8 MB, free: 5.816 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006277/0.1865, allocations: 459 kB / 357.3 MB, free: 5.371 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1865, allocations: 0 / 357.3 MB, free: 5.371 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000765/0.1873, allocations: 160 kB / 357.4 MB, free: 5.215 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002913/0.1876, allocations: 119.1 kB / 357.5 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.1886, allocations: 468.5 kB / 358 MB, free: 4.621 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/0.1886, allocations: 4.25 kB / 358 MB, free: 4.617 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004025/0.189, allocations: 242.5 kB / 358.2 MB, free: 4.367 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009179/0.19, allocations: 163.4 kB / 358.4 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002627/0.1926, allocations: 1.746 MB / 360.1 MB, free: 2.414 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006299/0.1933, allocations: 0.9608 MB / 361.1 MB, free: 1.422 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003664/0.1936, allocations: 85.94 kB / 361.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.008e-05/0.1937, allocations: 51.36 kB / 361.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1937, allocations: 0 / 361.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of Templates: time 0.0159/0.2096, allocations: 6.845 MB / 368.1 MB, free: 10.45 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: