Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001224/0.001224, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.772/1.772, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001801/0.001801, allocations: 51.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3239, allocations: 46.63 MB / 325.3 MB, free: 1.875 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01578/0.3397, allocations: 12.1 MB / 337.4 MB, free: 7.773 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00932/0.3491, allocations: 3.312 MB / 340.7 MB, free: 4.449 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003145/0.3524, allocations: 35.94 kB / 340.8 MB, free: 4.414 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002761/0.3551, allocations: 0.6634 MB / 341.4 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003843/0.359, allocations: 0.7247 MB / 342.1 MB, free: 3.016 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001341/0.3604, allocations: 411.5 kB / 342.5 MB, free: 2.613 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003898/0.3643, allocations: 2.394 MB / 344.9 MB, free: 212 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001578/0.3659, allocations: 0.9969 MB / 345.9 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001616/0.3675, allocations: 0.891 MB / 346.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.3688, allocations: 0.9839 MB / 347.8 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003107/0.3691, allocations: 228 kB / 348 MB, free: 13.06 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005902/0.3697, allocations: 276 kB / 348.3 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000358/0.3701, allocations: 454.3 kB / 348.7 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0011/0.3712, allocations: 1.077 MB / 349.8 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003128/0.3743, allocations: 2.791 MB / 352.6 MB, free: 8.465 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.3744, allocations: 0 / 352.6 MB, free: 8.465 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3744, allocations: 0 / 352.6 MB, free: 8.465 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.022e-05/0.3744, allocations: 0 / 352.6 MB, free: 8.465 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.004432/0.3789, allocations: 2.167 MB / 354.8 MB, free: 6.238 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.3789, allocations: 8.031 kB / 354.8 MB, free: 6.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009746/0.3799, allocations: 278.4 kB / 355.1 MB, free: 5.957 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002115/0.382, allocations: 1.107 MB / 356.2 MB, free: 4.793 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/0.3823, allocations: 115.5 kB / 356.3 MB, free: 4.68 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002349/0.3825, allocations: 159.8 kB / 356.4 MB, free: 4.523 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002918/0.3854, allocations: 1.508 MB / 357.9 MB, free: 2.953 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.514e-05/0.3855, allocations: 15.89 kB / 358 MB, free: 2.938 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001579/0.3857, allocations: 64 kB / 358 MB, free: 2.875 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.223e-05/0.3857, allocations: 36 kB / 358.1 MB, free: 2.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002449/0.3882, allocations: 1.049 MB / 359.1 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0111/0.3993, allocations: 6.288 MB / 365.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.4013, allocations: 0.62 MB / 366 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009698/0.4023, allocations: 462.2 kB / 366.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.182e-05/0.4024, allocations: 16.48 kB / 366.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.813e-05/0.4025, allocations: 43.12 kB / 366.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 3.297e-06/0.4025, allocations: 0 / 366.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.006077/0.4086, allocations: 2.368 MB / 368.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.4087, allocations: 111.5 kB / 369 MB, free: 7.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002558/0.4113, allocations: 1.31 MB / 370.3 MB, free: 6.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.537e-05/0.4114, allocations: 33.7 kB / 370.3 MB, free: 6.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001053/0.4124, allocations: 0.8492 MB / 371.2 MB, free: 5.219 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003353/0.4128, allocations: 260.3 kB / 371.5 MB, free: 4.961 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003791/0.4132, allocations: 206.7 kB / 371.7 MB, free: 4.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002308/0.4134, allocations: 349.9 kB / 372 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006617/0.4141, allocations: 282.5 kB / 372.3 MB, free: 4.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009196/0.415, allocations: 0.7342 MB / 373 MB, free: 3.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.4166, allocations: 1.088 MB / 374.1 MB, free: 1.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-06/0.4167, allocations: 4 kB / 374.1 MB, free: 1.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002896/0.4196, allocations: 1.267 MB / 375.4 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.4196, allocations: 12 kB / 375.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.807e-05/0.4196, allocations: 16 kB / 375.4 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006507/0.4203, allocations: 138.9 kB / 375.5 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008446/0.4212, allocations: 255.6 kB / 375.8 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004618/0.4258, allocations: 4.638 MB / 380.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001414/0.4272, allocations: 59.81 kB / 380.5 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.578e-05/0.4273, allocations: 52 kB / 380.5 MB, free: 11.01 MB / 318.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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0008102/0.4282, allocations: 365.4 kB / 380.9 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00027/0.4284, allocations: 138.3 kB / 381 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/0.4303, allocations: 0.8256 MB / 381.8 MB, free: 9.652 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.4304, allocations: 11.94 kB / 381.9 MB, free: 9.641 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.4304, allocations: 4 kB / 381.9 MB, free: 9.637 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.4304, allocations: 3.984 kB / 381.9 MB, free: 9.633 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00454/0.4349, allocations: 2.334 MB / 384.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.435, allocations: 4 kB / 384.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005894/0.4356, allocations: 127.8 kB / 384.3 MB, free: 7.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005029/0.4361, allocations: 139 kB / 384.5 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.634e-05/0.4362, allocations: 27.98 kB / 384.5 MB, free: 6.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004686/0.4409, allocations: 4.775 MB / 389.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/0.4409, allocations: 15.88 kB / 389.3 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002756/0.4437, allocations: 1.291 MB / 390.6 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006931/0.4444, allocations: 287.3 kB / 390.8 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001832/0.4446, allocations: 20.14 kB / 390.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006379/0.4452, allocations: 43.97 kB / 390.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.4454, allocations: 56.38 kB / 391 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.24e-05/0.4454, allocations: 27.98 kB / 391 MB, free: 15.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001427/0.4469, allocations: 0.8781 MB / 391.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4469, allocations: 0 / 391.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001407/0.4483, allocations: 332 kB / 392.2 MB, free: 14.65 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003013/0.4486, allocations: 131 kB / 392.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002374/0.451, allocations: 1.144 MB / 393.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.451, allocations: 384 / 393.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.4522, allocations: 0.7108 MB / 394.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001992/0.4542, allocations: 356.9 kB / 394.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006302/0.4605, allocations: 2.954 MB / 397.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009141/0.4614, allocations: 1.214 MB / 398.7 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008549/0.4623, allocations: 175.6 kB / 398.9 MB, free: 7.785 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.4625, allocations: 91.42 kB / 399 MB, free: 7.695 MB / 334.1 MB Notification: Performance of SimCode: time 1.884e-06/0.4626, allocations: 0 / 399 MB, free: 7.695 MB / 334.1 MB Notification: Performance of Templates: time 0.03795/0.5005, allocations: 17.65 MB / 416.6 MB, free: 6.02 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)