Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 111.1 kB / 17.68 MB, free: 5.355 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.001603/0.001603, allocations: 192 kB / 18.62 MB, free: 4.434 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.708/1.708, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2104/0.2104, allocations: 37.97 MB / 309.8 MB, free: 5.984 MB / 254.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.001752/0.001752, allocations: 63.91 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.292, allocations: 55.24 MB / 432 MB, free: 19.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007777/0.2999, allocations: 7.094 MB / 439.1 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005128/0.3051, allocations: 2.89 MB / 442 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007324/0.3058, allocations: 31.81 kB / 442 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001241/0.3071, allocations: 381.8 kB / 442.4 MB, free: 9.219 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001749/0.3088, allocations: 0.7739 MB / 443.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007145/0.3096, allocations: 311.5 kB / 443.5 MB, free: 8.137 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001699/0.3113, allocations: 1.566 MB / 445.1 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001449/0.3127, allocations: 1.425 MB / 446.5 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007999/0.3135, allocations: 0.6463 MB / 447.1 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000815/0.3144, allocations: 0.7476 MB / 447.9 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.3145, allocations: 140 kB / 448 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00108/0.3156, allocations: 0.6826 MB / 448.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003912/0.316, allocations: 0.495 MB / 449.2 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005443/0.3166, allocations: 0.6574 MB / 449.8 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.3184, allocations: 2.119 MB / 452 MB, free: 15.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3184, allocations: 0 / 452 MB, free: 15.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3184, allocations: 0 / 452 MB, free: 15.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.3185, allocations: 0 / 452 MB, free: 15.62 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.003271/0.3217, allocations: 1.559 MB / 453.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/0.3218, allocations: 11.89 kB / 453.5 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007027/0.3225, allocations: 167.5 kB / 453.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001533/0.3241, allocations: 0.8424 MB / 454.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.3243, allocations: 200.7 kB / 454.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001801/0.3245, allocations: 104 kB / 454.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/0.3269, allocations: 1.461 MB / 456.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.365e-05/0.327, allocations: 11.84 kB / 456.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.3271, allocations: 40 kB / 456.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001292/0.3272, allocations: 77.97 kB / 456.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002067/0.3293, allocations: 1.261 MB / 457.7 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007463/0.3368, allocations: 5.172 MB / 462.9 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.3384, allocations: 1.024 MB / 463.9 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007586/0.3391, allocations: 0.4925 MB / 464.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.892e-05/0.3392, allocations: 12.55 kB / 464.4 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.3393, allocations: 39.12 kB / 464.4 MB, free: 2.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=74): time 3.477e-06/0.3393, allocations: 0 / 464.4 MB, free: 2.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=78): time 0.006135/0.3454, allocations: 3.075 MB / 467.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.833e-05/0.3455, allocations: 111.3 kB / 467.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00087/0.3464, allocations: 0.6874 MB / 468.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.834e-05/0.3465, allocations: 45.69 kB / 468.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003196/0.3468, allocations: 482.7 kB / 468.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002173/0.347, allocations: 264.3 kB / 469.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00033/0.3474, allocations: 194.5 kB / 469.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.3476, allocations: 390.7 kB / 469.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007584/0.3483, allocations: 441.8 kB / 470.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008965/0.3492, allocations: 0.7126 MB / 470.8 MB, free: 12.09 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.005218/0.3545, allocations: 2.587 MB / 473.4 MB, free: 9.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.3545, allocations: 4 kB / 473.4 MB, free: 9.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002247/0.3567, allocations: 1.301 MB / 474.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.3568, allocations: 12 kB / 474.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.3568, allocations: 11.94 kB / 474.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002605/0.3571, allocations: 90.14 kB / 474.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008423/0.3579, allocations: 223.7 kB / 475 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001214/0.3592, allocations: 1.45 MB / 476.5 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007617/0.3599, allocations: 75.83 kB / 476.5 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.112e-05/0.36, allocations: 40 kB / 476.6 MB, free: 5.996 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[6],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006797/0.3607, allocations: 414.6 kB / 477 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002371/0.3609, allocations: 79.06 kB / 477 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/0.3627, allocations: 0.9784 MB / 478 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.246e-05/0.3627, allocations: 12 kB / 478 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.3627, allocations: 11.92 kB / 478.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.3627, allocations: 8 kB / 478.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003663/0.3664, allocations: 2.281 MB / 480.3 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3664, allocations: 0 / 480.3 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006765/0.3671, allocations: 147.8 kB / 480.5 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.085e-05/0.3672, allocations: 20.86 kB / 480.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.756e-05/0.3673, allocations: 19.98 kB / 480.5 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009692/0.3683, allocations: 1.375 MB / 481.9 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3683, allocations: 4.031 kB / 481.9 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002248/0.3705, allocations: 1.647 MB / 483.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004001/0.3709, allocations: 248 kB / 483.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.796e-05/0.371, allocations: 16 kB / 483.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004669/0.3715, allocations: 51.94 kB / 483.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.3717, allocations: 64.41 kB / 483.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.245e-05/0.3717, allocations: 16 kB / 483.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005659/0.3723, allocations: 483 kB / 484.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3723, allocations: 0 / 484.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009845/0.3733, allocations: 263.9 kB / 484.7 MB, free: 13.61 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0003619/0.3737, allocations: 170.3 kB / 484.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.3756, allocations: 1.244 MB / 486.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3756, allocations: 0 / 486.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008312/0.3764, allocations: 0.6087 MB / 486.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.3775, allocations: 227.2 kB / 486.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004375/0.3819, allocations: 2.514 MB / 489.4 MB, free: 8.773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007671/0.3827, allocations: 1.165 MB / 490.6 MB, free: 7.574 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007004/0.3834, allocations: 258.9 kB / 490.8 MB, free: 7.316 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.3836, allocations: 67.36 kB / 490.9 MB, free: 7.25 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3836, allocations: 0 / 490.9 MB, free: 7.25 MB / 366.1 MB Notification: Performance of Templates: time 0.02232/0.4059, allocations: 12.29 MB / 0.4914 GB, free: 10.99 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)