Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009774/0.0009774, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001034/0.001034, allocations: 177.3 kB / 15.94 MB, free: 228 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.767/1.767, allocations: 205.4 MB / 222.1 MB, free: 5.52 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.000449/0.000449, allocations: 12 kB / 278.9 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2897, allocations: 47.59 MB / 326.4 MB, free: 1.625 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01126/0.301, allocations: 9.604 MB / 336.1 MB, free: 10 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007856/0.3089, allocations: 3.234 MB / 339.3 MB, free: 6.762 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001856/0.3109, allocations: 35.94 kB / 339.3 MB, free: 6.727 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001693/0.3126, allocations: 0.5207 MB / 339.8 MB, free: 6.203 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002265/0.3148, allocations: 0.7595 MB / 340.6 MB, free: 5.441 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000749/0.3156, allocations: 247.7 kB / 340.8 MB, free: 5.199 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003163/0.3188, allocations: 1.697 MB / 342.5 MB, free: 3.496 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001064/0.3199, allocations: 0.6833 MB / 343.2 MB, free: 2.793 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.321, allocations: 0.6809 MB / 343.9 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008766/0.3219, allocations: 0.7543 MB / 344.7 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000157/0.3221, allocations: 107.9 kB / 344.8 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003858/0.3225, allocations: 140 kB / 344.9 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000248/0.3227, allocations: 294.7 kB / 345.2 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000368/0.3231, allocations: 404.7 kB / 345.6 MB, free: 428 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001944/0.325, allocations: 2.13 MB / 347.7 MB, free: 14.28 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.3251, allocations: 0 / 347.7 MB, free: 14.28 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3251, allocations: 0 / 347.7 MB, free: 14.28 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.74e-05/0.3251, allocations: 0 / 347.7 MB, free: 14.28 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003195/0.3283, allocations: 1.836 MB / 349.6 MB, free: 12.39 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.3284, allocations: 8.031 kB / 349.6 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006729/0.329, allocations: 257.5 kB / 349.8 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.331, allocations: 1.064 MB / 350.9 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.045e-05/0.3311, allocations: 119.1 kB / 351 MB, free: 10.89 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002065/0.3313, allocations: 155.9 kB / 351.1 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002779/0.3341, allocations: 1.473 MB / 352.6 MB, free: 9.199 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.085e-05/0.3341, allocations: 11.89 kB / 352.6 MB, free: 9.188 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/0.3343, allocations: 60 kB / 352.7 MB, free: 9.129 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.759e-05/0.3343, allocations: 40 kB / 352.7 MB, free: 9.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001993/0.3363, allocations: 1.018 MB / 353.7 MB, free: 8.066 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008134/0.3445, allocations: 6.167 MB / 359.9 MB, free: 1.605 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.3457, allocations: 0.5529 MB / 360.5 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.399e-05/0.3458, allocations: 16.55 kB / 360.5 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.3458, allocations: 47.08 kB / 360.5 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of pre-optimization done (n=66): time 2.445e-06/0.3458, allocations: 0 / 360.5 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of matching and sorting (n=72): time 0.004465/0.3503, allocations: 2.279 MB / 362.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.526e-05/0.3504, allocations: 107.5 kB / 362.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.3518, allocations: 1.185 MB / 364.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.877e-05/0.3519, allocations: 37.7 kB / 364.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006117/0.3525, allocations: 0.853 MB / 365 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.3527, allocations: 264.3 kB / 365.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-05/0.3528, allocations: 20 kB / 365.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.3529, allocations: 357.9 kB / 365.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005292/0.3535, allocations: 270.5 kB / 365.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008363/0.3543, allocations: 0.7147 MB / 366.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006862/0.355, allocations: 391 kB / 367 MB, free: 10.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.355, allocations: 7.938 kB / 367 MB, free: 10.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.00203/0.3571, allocations: 1.217 MB / 368.2 MB, free: 8.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.3571, allocations: 12 kB / 368.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.897e-05/0.3571, allocations: 16.5 kB / 368.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004038/0.3575, allocations: 118.6 kB / 368.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008425/0.3584, allocations: 255.6 kB / 368.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003908/0.3623, allocations: 4.2 MB / 372.8 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.3634, allocations: 60.14 kB / 372.8 MB, free: 3.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.591e-05/0.3635, allocations: 55.98 kB / 372.9 MB, free: 3.793 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (138): * Single equations (assignments): 135 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0007777/0.3643, allocations: 349.4 kB / 373.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002187/0.3645, allocations: 138.3 kB / 373.4 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001637/0.3661, allocations: 0.7944 MB / 374.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.3661, allocations: 4 kB / 374.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3662, allocations: 7.938 kB / 374.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.3662, allocations: 3.984 kB / 374.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003471/0.3696, allocations: 2.173 MB / 376.4 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.3697, allocations: 4 kB / 376.4 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005716/0.3702, allocations: 132.2 kB / 376.5 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004093/0.3707, allocations: 106.6 kB / 376.6 MB, free: 15.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.866e-05/0.3707, allocations: 27.94 kB / 376.6 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00417/0.3749, allocations: 4.321 MB / 380.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.3749, allocations: 4 kB / 381 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002453/0.3774, allocations: 1.424 MB / 382.4 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004959/0.3779, allocations: 263.3 kB / 382.6 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001433/0.378, allocations: 19.95 kB / 382.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005479/0.3786, allocations: 43.97 kB / 382.7 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.3787, allocations: 52.48 kB / 382.7 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.242e-05/0.3788, allocations: 24 kB / 382.8 MB, free: 9.16 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00128/0.3801, allocations: 0.7843 MB / 383.6 MB, free: 8.375 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.3801, allocations: 0 / 383.6 MB, free: 8.375 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001412/0.3815, allocations: 328 kB / 383.9 MB, free: 8.055 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002752/0.3818, allocations: 127.1 kB / 384 MB, free: 7.918 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.3837, allocations: 1.101 MB / 385.1 MB, free: 6.777 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3837, allocations: 0 / 385.1 MB, free: 6.777 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009369/0.3847, allocations: 0.6804 MB / 385.8 MB, free: 6.062 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.3861, allocations: 333 kB / 386.1 MB, free: 5.734 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005256/0.3914, allocations: 3.437 MB / 389.5 MB, free: 2.223 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008168/0.3922, allocations: 1.245 MB / 390.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006996/0.3929, allocations: 175.4 kB / 391 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001821/0.3931, allocations: 87.42 kB / 391 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3931, allocations: 0 / 391 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of Templates: time 0.0279/0.421, allocations: 14.63 MB / 405.7 MB, free: 2.031 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) Environment - environmentSimulation: