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.001099/0.001099, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001254/0.001254, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.367/1.367, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1743/0.1743, allocations: 37.98 MB / 309.8 MB, free: 5.973 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.001489/0.001489, allocations: 67.89 kB / 376.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2165, allocations: 55.24 MB / 432 MB, free: 19.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.006532/0.2231, allocations: 7.09 MB / 439.1 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002999/0.2262, allocations: 2.902 MB / 442 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002776/0.2264, allocations: 23.88 kB / 442 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008743/0.2273, allocations: 385.7 kB / 442.4 MB, free: 9.211 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.001121/0.2285, allocations: 0.7856 MB / 443.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000484/0.229, allocations: 299.5 kB / 443.5 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00108/0.23, allocations: 1.566 MB / 445.1 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009968/0.231, allocations: 1.425 MB / 446.5 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004573/0.2315, allocations: 0.6385 MB / 447.1 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006075/0.2321, allocations: 0.7437 MB / 447.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.2323, allocations: 140 kB / 448 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006899/0.233, allocations: 0.6904 MB / 448.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002979/0.2333, allocations: 0.5028 MB / 449.2 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004196/0.2337, allocations: 0.6535 MB / 449.8 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001307/0.235, allocations: 2.115 MB / 452 MB, free: 15.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.235, allocations: 0 / 452 MB, free: 15.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.235, allocations: 0 / 452 MB, free: 15.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.2351, 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.002624/0.2377, allocations: 1.551 MB / 453.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.2377, allocations: 15.89 kB / 453.5 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006035/0.2383, allocations: 163.5 kB / 453.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001507/0.2399, allocations: 0.8424 MB / 454.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002111/0.2401, allocations: 204.7 kB / 454.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.2403, allocations: 104 kB / 454.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/0.2423, allocations: 1.465 MB / 456.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.354e-05/0.2423, allocations: 11.84 kB / 456.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.276e-05/0.2424, allocations: 43.98 kB / 456.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001142/0.2426, allocations: 81.95 kB / 456.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001869/0.2444, allocations: 1.261 MB / 457.7 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006452/0.2509, allocations: 5.165 MB / 462.9 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/0.2523, allocations: 1.028 MB / 463.9 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007336/0.2531, allocations: 498.7 kB / 464.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.654e-05/0.2532, allocations: 9.188 kB / 464.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.2532, allocations: 51.06 kB / 464.4 MB, free: 2.699 MB / 334.1 MB Notification: Performance of pre-optimization done (n=74): time 2.425e-06/0.2532, allocations: 0 / 464.4 MB, free: 2.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=78): time 0.005576/0.2588, allocations: 3.066 MB / 467.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.2589, allocations: 115.3 kB / 467.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007659/0.2596, allocations: 0.6992 MB / 468.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.815e-05/0.2597, allocations: 37.64 kB / 468.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003128/0.26, allocations: 482.7 kB / 468.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.2602, allocations: 268.2 kB / 469.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002518/0.2605, allocations: 186.5 kB / 469.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.2606, allocations: 394.7 kB / 469.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006765/0.2613, allocations: 441.8 kB / 470.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008569/0.2622, allocations: 0.7126 MB / 470.8 MB, free: 12.08 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.005131/0.2673, allocations: 2.579 MB / 473.4 MB, free: 9.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.2673, allocations: 8 kB / 473.4 MB, free: 9.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002112/0.2695, allocations: 1.301 MB / 474.7 MB, free: 8.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.2695, allocations: 12 kB / 474.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/0.2695, allocations: 15.92 kB / 474.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002554/0.2698, allocations: 89.61 kB / 474.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008177/0.2706, allocations: 219.7 kB / 475 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.2717, allocations: 1.445 MB / 476.5 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006842/0.2724, allocations: 83.89 kB / 476.5 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.286e-05/0.2725, allocations: 36 kB / 476.6 MB, free: 5.992 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.0005973/0.2731, allocations: 418.6 kB / 477 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.2733, allocations: 79.06 kB / 477.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/0.2749, allocations: 0.9823 MB / 478 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.94e-05/0.275, allocations: 12 kB / 478 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.275, allocations: 7.938 kB / 478.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.275, allocations: 3.984 kB / 478.1 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003471/0.2785, allocations: 2.281 MB / 480.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.2785, allocations: 4 kB / 480.3 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006884/0.2792, allocations: 139.8 kB / 480.5 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.664e-05/0.2793, allocations: 24.84 kB / 480.5 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-05/0.2794, allocations: 16.03 kB / 480.5 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009046/0.2803, allocations: 1.386 MB / 481.9 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.2803, allocations: 3.984 kB / 481.9 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002238/0.2825, allocations: 1.65 MB / 483.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003956/0.2829, allocations: 244 kB / 483.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.2831, allocations: 20 kB / 483.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004988/0.2836, allocations: 43.94 kB / 483.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.2837, allocations: 56.48 kB / 483.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.347e-05/0.2838, allocations: 16 kB / 483.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005318/0.2843, allocations: 491 kB / 484.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2843, allocations: 0 / 484.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008609/0.2852, allocations: 259.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.000333/0.2855, allocations: 171.7 kB / 484.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001818/0.2874, allocations: 1.242 MB / 486.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2874, allocations: 0 / 486.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008363/0.2882, allocations: 0.6111 MB / 486.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.2892, allocations: 233.4 kB / 486.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004462/0.2937, allocations: 2.51 MB / 489.4 MB, free: 8.766 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008494/0.2946, allocations: 1.161 MB / 490.6 MB, free: 7.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006567/0.2952, allocations: 250.9 kB / 490.8 MB, free: 7.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002076/0.2955, allocations: 71.42 kB / 490.9 MB, free: 7.25 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2955, allocations: 0 / 490.9 MB, free: 7.25 MB / 366.1 MB Notification: Performance of Templates: time 0.02063/0.3161, allocations: 12.29 MB / 0.4914 GB, free: 10.98 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)