Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.0009982/0.0009985, allocations: 92.08 kB / 15.06 MB, free: 1.098 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.001481/0.001481, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.95/1.95, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.0005726/0.0005727, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3353, allocations: 47.58 MB / 326.5 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008987/0.3443, allocations: 6.236 MB / 332.7 MB, free: 12.51 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004887/0.3493, allocations: 2.23 MB / 334.9 MB, free: 10.66 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006653/0.35, allocations: 20.72 kB / 335 MB, free: 10.66 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.3513, allocations: 412.8 kB / 335.4 MB, free: 10.37 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001053/0.3524, allocations: 314.6 kB / 335.7 MB, free: 10.1 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000419/0.3528, allocations: 122.8 kB / 335.8 MB, free: 10 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.3541, allocations: 1.079 MB / 336.9 MB, free: 9.082 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006311/0.3548, allocations: 364.5 kB / 337.2 MB, free: 8.715 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005478/0.3553, allocations: 374.3 kB / 337.6 MB, free: 8.348 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004716/0.3558, allocations: 414.1 kB / 338 MB, free: 7.941 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.58e-05/0.3559, allocations: 59.94 kB / 338.1 MB, free: 7.883 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002708/0.3562, allocations: 87.98 kB / 338.1 MB, free: 7.797 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.3563, allocations: 155.2 kB / 338.3 MB, free: 7.645 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.3565, allocations: 221.2 kB / 338.5 MB, free: 7.422 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001071/0.3576, allocations: 1.114 MB / 339.6 MB, free: 6.305 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.3576, allocations: 0 / 339.6 MB, free: 6.305 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3576, allocations: 3.938 kB / 339.6 MB, free: 6.301 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.3577, allocations: 0 / 339.6 MB, free: 6.301 MB / 270.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.001854/0.3595, allocations: 1.106 MB / 340.7 MB, free: 5.145 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.3596, allocations: 8.031 kB / 340.7 MB, free: 5.137 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004746/0.36, allocations: 146.6 kB / 340.9 MB, free: 4.992 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.3611, allocations: 0.6174 MB / 341.5 MB, free: 4.328 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.48e-05/0.3611, allocations: 58 kB / 341.6 MB, free: 4.273 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.3613, allocations: 87.84 kB / 341.6 MB, free: 4.188 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.3626, allocations: 0.7754 MB / 342.4 MB, free: 3.379 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.001e-05/0.3627, allocations: 8 kB / 342.4 MB, free: 3.371 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.556e-05/0.3627, allocations: 32 kB / 342.5 MB, free: 3.34 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.3628, allocations: 20 kB / 342.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009919/0.3638, allocations: 0.5309 MB / 343 MB, free: 2.793 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004198/0.368, allocations: 3.399 MB / 346.4 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/0.3685, allocations: 250.4 kB / 346.7 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002373/0.3688, allocations: 124.8 kB / 346.8 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.261e-05/0.3688, allocations: 0 / 346.8 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.3688, allocations: 38.56 kB / 346.8 MB, free: 14.76 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.433e-06/0.3688, allocations: 0 / 346.8 MB, free: 14.76 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.002155/0.371, allocations: 1.09 MB / 347.9 MB, free: 13.6 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.043e-05/0.3711, allocations: 81.11 kB / 348 MB, free: 13.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009566/0.372, allocations: 0.7347 MB / 348.7 MB, free: 12.76 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.3721, allocations: 29.7 kB / 348.7 MB, free: 12.72 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003992/0.3725, allocations: 498.2 kB / 349.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.173e-05/0.3726, allocations: 110.5 kB / 349.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.018e-05/0.3726, allocations: 8 kB / 349.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002193/0.3728, allocations: 382.7 kB / 349.7 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002762/0.3731, allocations: 133.2 kB / 349.9 MB, free: 11.59 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004894/0.3736, allocations: 422.1 kB / 350.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.374, allocations: 199.9 kB / 350.5 MB, free: 10.85 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.374, allocations: 4 kB / 350.5 MB, free: 10.85 MB / 286.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001139/0.3752, allocations: 0.6151 MB / 351.1 MB, free: 10.22 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.3752, allocations: 8 kB / 351.1 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/0.3752, allocations: 12.06 kB / 351.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000203/0.3754, allocations: 40.78 kB / 351.1 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004563/0.3759, allocations: 143.8 kB / 351.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/0.3772, allocations: 1.28 MB / 352.6 MB, free: 8.602 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004519/0.3777, allocations: 43.84 kB / 352.6 MB, free: 8.559 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.172e-05/0.3777, allocations: 32.12 kB / 352.6 MB, free: 8.527 MB / 286.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.0004064/0.3781, allocations: 233.7 kB / 352.9 MB, free: 8.289 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.3782, allocations: 67.16 kB / 352.9 MB, free: 8.223 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006625/0.3789, allocations: 341.9 kB / 353.3 MB, free: 7.879 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3789, allocations: 4 kB / 353.3 MB, free: 7.875 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.361e-06/0.3789, allocations: 3.953 kB / 353.3 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3789, allocations: 0 / 353.3 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.3806, allocations: 1.124 MB / 354.4 MB, free: 6.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3806, allocations: 0 / 354.4 MB, free: 6.668 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.3808, allocations: 63.91 kB / 354.5 MB, free: 6.605 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.568e-05/0.3809, allocations: 20.84 kB / 354.5 MB, free: 6.582 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.381, allocations: 8 kB / 354.5 MB, free: 6.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/0.382, allocations: 1.28 MB / 355.8 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.382, allocations: 0 / 355.8 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008526/0.3829, allocations: 0.5756 MB / 356.3 MB, free: 4.543 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002227/0.3831, allocations: 176.2 kB / 356.5 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.26e-05/0.3832, allocations: 8 kB / 356.5 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002969/0.3835, allocations: 19.98 kB / 356.5 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.611e-05/0.3836, allocations: 31.86 kB / 356.6 MB, free: 4.293 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.3836, allocations: 12 kB / 356.6 MB, free: 4.281 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0007558/0.3844, allocations: 0.499 MB / 357.1 MB, free: 3.785 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3844, allocations: 0 / 357.1 MB, free: 3.785 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007152/0.3851, allocations: 156 kB / 357.2 MB, free: 3.633 MB / 286.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.000248/0.3853, allocations: 119.2 kB / 357.3 MB, free: 3.508 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009393/0.3863, allocations: 472.7 kB / 357.8 MB, free: 3.035 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.3863, allocations: 7.938 kB / 357.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003988/0.3867, allocations: 235 kB / 358 MB, free: 2.785 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009136/0.3876, allocations: 178.9 kB / 358.2 MB, free: 2.613 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002699/0.3903, allocations: 1.742 MB / 360 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006506/0.391, allocations: 0.9414 MB / 360.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003593/0.3914, allocations: 90.02 kB / 361 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.995e-05/0.3915, allocations: 43.44 kB / 361 MB, free: 15.71 MB / 302.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3915, allocations: 0 / 361 MB, free: 15.71 MB / 302.1 MB Notification: Performance of Templates: time 0.01655/0.408, allocations: 7.439 MB / 368.5 MB, free: 8.273 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)