Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 90.2 kB / 16.65 MB, free: 6.258 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.001707/0.001707, allocations: 179.4 kB / 17.56 MB, free: 5.875 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.921/1.921, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004948/0.0004951, allocations: 12 kB / 280.7 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.128, allocations: 47.57 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009725/0.1378, allocations: 7.529 MB / 335.8 MB, free: 12.19 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006782/0.1447, allocations: 2.611 MB / 338.5 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001221/0.146, allocations: 23.94 kB / 338.5 MB, free: 9.547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002/0.148, allocations: 0.4902 MB / 339 MB, free: 9.055 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001922/0.1499, allocations: 409.1 kB / 339.4 MB, free: 8.652 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005582/0.1505, allocations: 219.8 kB / 339.6 MB, free: 8.438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001714/0.1522, allocations: 1.389 MB / 341 MB, free: 7.043 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008592/0.1531, allocations: 0.5006 MB / 341.5 MB, free: 6.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00093/0.154, allocations: 473.6 kB / 341.9 MB, free: 6.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000703/0.1547, allocations: 0.5091 MB / 342.4 MB, free: 5.543 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.1549, allocations: 64 kB / 342.5 MB, free: 5.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003356/0.1552, allocations: 108 kB / 342.6 MB, free: 5.375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.1554, allocations: 203 kB / 342.8 MB, free: 5.176 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005412/0.1559, allocations: 0.6001 MB / 343.4 MB, free: 4.566 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001429/0.1574, allocations: 1.611 MB / 345 MB, free: 2.949 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1574, allocations: 3.938 kB / 345 MB, free: 2.945 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1574, allocations: 0 / 345 MB, free: 2.945 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.658e-05/0.1574, allocations: 0 / 345 MB, free: 2.945 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002132/0.1596, allocations: 1.262 MB / 346.3 MB, free: 1.629 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.1596, allocations: 8.031 kB / 346.3 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006328/0.1603, allocations: 187.4 kB / 346.5 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.1615, allocations: 0.7339 MB / 347.2 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.933e-05/0.1616, allocations: 74 kB / 347.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/0.1618, allocations: 103.9 kB / 347.4 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.1635, allocations: 0.9347 MB / 348.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.151e-05/0.1635, allocations: 4 kB / 348.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.188e-05/0.1636, allocations: 40 kB / 348.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.285e-05/0.1636, allocations: 27.98 kB / 348.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.1649, allocations: 0.6442 MB / 349 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005105/0.17, allocations: 3.942 MB / 353 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007302/0.1707, allocations: 444.6 kB / 353.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005631/0.1713, allocations: 257.4 kB / 353.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.133e-05/0.1713, allocations: 8.312 kB / 353.7 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.574e-05/0.1714, allocations: 46.83 kB / 353.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 3.056e-06/0.1714, allocations: 0 / 353.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002769/0.1742, allocations: 1.419 MB / 355.1 MB, free: 8.363 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.863e-05/0.1743, allocations: 89.11 kB / 355.2 MB, free: 8.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.1754, allocations: 0.8253 MB / 356 MB, free: 7.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.1754, allocations: 33.7 kB / 356.1 MB, free: 7.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004425/0.1759, allocations: 0.5526 MB / 356.6 MB, free: 6.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.176, allocations: 161.7 kB / 356.8 MB, free: 6.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.566e-05/0.1761, allocations: 61.69 kB / 356.9 MB, free: 6.594 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1763, allocations: 330 kB / 357.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003459/0.1767, allocations: 173.9 kB / 357.3 MB, free: 6.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000562/0.1772, allocations: 471.9 kB / 357.8 MB, free: 5.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009487/0.1782, allocations: 0.6661 MB / 358.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1782, allocations: 4 kB / 358.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001338/0.1796, allocations: 0.7747 MB / 359.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.141e-05/0.1796, allocations: 12.03 kB / 359.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.1796, allocations: 12 kB / 359.3 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002901/0.1799, allocations: 85.62 kB / 359.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005105/0.1805, allocations: 155.7 kB / 359.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002507/0.183, allocations: 2.876 MB / 362.4 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005677/0.1836, allocations: 43.95 kB / 362.4 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.1836, allocations: 32 kB / 362.5 MB, free: 440 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004599/0.1841, allocations: 264.2 kB / 362.7 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.1842, allocations: 82.97 kB / 362.8 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.1852, allocations: 0.5072 MB / 363.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.1853, allocations: 8 kB / 363.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.1853, allocations: 0 / 363.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.1853, allocations: 7.938 kB / 363.3 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.1874, allocations: 1.446 MB / 364.8 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.1875, allocations: 0 / 364.8 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/0.1878, allocations: 75.84 kB / 364.8 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001936/0.188, allocations: 69.67 kB / 364.9 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.807e-05/0.188, allocations: 16.12 kB / 364.9 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002293/0.1903, allocations: 2.856 MB / 367.8 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.1903, allocations: 4.031 kB / 367.8 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.1916, allocations: 0.773 MB / 368.6 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002867/0.1919, allocations: 204 kB / 368.8 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.555e-05/0.192, allocations: 11.94 kB / 368.8 MB, free: 9.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004121/0.1924, allocations: 27.98 kB / 368.8 MB, free: 9.645 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.169e-05/0.1925, allocations: 35.95 kB / 368.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/0.1925, allocations: 16 kB / 368.8 MB, free: 9.594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008442/0.1934, allocations: 0.5576 MB / 369.4 MB, free: 9.043 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1934, allocations: 4 kB / 369.4 MB, free: 9.039 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009395/0.1944, allocations: 207.9 kB / 369.6 MB, free: 8.836 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.0002735/0.1946, allocations: 127.1 kB / 369.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.1959, allocations: 0.6865 MB / 370.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.196, allocations: 4.688 kB / 370.4 MB, free: 7.984 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006917/0.1967, allocations: 441.1 kB / 370.9 MB, free: 7.527 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001422/0.1981, allocations: 223.4 kB / 371.1 MB, free: 7.312 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003389/0.2015, allocations: 2.217 MB / 373.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006208/0.2021, allocations: 1.005 MB / 374.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004326/0.2026, allocations: 111.2 kB / 374.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.2027, allocations: 63.42 kB / 374.5 MB, free: 3.84 MB / 318.1 MB Notification: Performance of SimCode: time 2.174e-06/0.2027, allocations: 0 / 374.5 MB, free: 3.84 MB / 318.1 MB Notification: Performance of Templates: time 0.2356/0.4383, allocations: 9.943 MB / 384.4 MB, free: 49.54 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)