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.0009295/0.0009296, allocations: 92.22 kB / 16.65 MB, free: 6.59 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.001121/0.001122, allocations: 185 kB / 17.57 MB, free: 6.199 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.488/1.488, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1703/0.1703, allocations: 38.05 MB / 310.1 MB, free: 5.914 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.0005906/0.0005906, allocations: 27.12 kB / 377.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2554, allocations: 56.33 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.006661/0.2621, allocations: 7.658 MB / 441.2 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005312/0.2674, allocations: 3.199 MB / 444.4 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001012/0.2685, allocations: 47.69 kB / 444.4 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007465/0.2693, allocations: 202.8 kB / 444.6 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001505/0.2708, allocations: 0.716 MB / 445.3 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005398/0.2713, allocations: 279.7 kB / 445.6 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001533/0.2729, allocations: 2.112 MB / 447.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001126/0.274, allocations: 1.243 MB / 448.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000516/0.2745, allocations: 0.4979 MB / 449.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006741/0.2752, allocations: 0.689 MB / 450.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.772e-05/0.2753, allocations: 60 kB / 450.2 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007654/0.2761, allocations: 0.6201 MB / 450.8 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002641/0.2764, allocations: 410.9 kB / 451.2 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003667/0.2767, allocations: 0.5809 MB / 451.8 MB, free: 272 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001668/0.2784, allocations: 1.974 MB / 453.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2784, allocations: 4 kB / 453.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2784, allocations: 0 / 453.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.726e-05/0.2785, allocations: 0 / 453.8 MB, free: 14.28 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.00272/0.2812, allocations: 1.344 MB / 455.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.2813, allocations: 8.031 kB / 455.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006377/0.2819, allocations: 179.4 kB / 455.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/0.2832, allocations: 0.7996 MB / 456.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.2835, allocations: 208.7 kB / 456.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001665/0.2836, allocations: 103.9 kB / 456.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002255/0.2859, allocations: 1.481 MB / 457.9 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.447e-05/0.2859, allocations: 3.984 kB / 457.9 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/0.2861, allocations: 44 kB / 457.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/0.2862, allocations: 77.91 kB / 458 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002022/0.2882, allocations: 1.273 MB / 459.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007039/0.2953, allocations: 5.231 MB / 464.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00156/0.2969, allocations: 1.033 MB / 465.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007877/0.2977, allocations: 0.5002 MB / 466 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.162e-05/0.2977, allocations: 12.55 kB / 466.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/0.2978, allocations: 39.12 kB / 466.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of pre-optimization done (n=74): time 3.747e-06/0.2978, allocations: 0 / 466.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=78): time 0.006268/0.3041, allocations: 3.144 MB / 469.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.122e-05/0.3042, allocations: 111.4 kB / 469.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009731/0.3051, allocations: 0.6875 MB / 470 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.993e-05/0.3052, allocations: 37.7 kB / 470.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003555/0.3056, allocations: 478.8 kB / 470.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.3058, allocations: 272.1 kB / 470.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.3059, allocations: 89.67 kB / 470.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002051/0.3061, allocations: 390.7 kB / 471.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006826/0.3068, allocations: 453.7 kB / 471.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000877/0.3077, allocations: 0.7204 MB / 472.4 MB, free: 10.9 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.005479/0.3132, allocations: 2.602 MB / 475 MB, free: 8.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.3132, allocations: 4 kB / 475 MB, free: 8.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002399/0.3156, allocations: 1.32 MB / 476.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.3157, allocations: 8 kB / 476.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.332e-05/0.3157, allocations: 11.94 kB / 476.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002789/0.316, allocations: 81.95 kB / 476.5 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008273/0.3169, allocations: 231.6 kB / 476.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/0.318, allocations: 1.351 MB / 478 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000665/0.3187, allocations: 79.84 kB / 478.1 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.641e-05/0.3188, allocations: 43.98 kB / 478.2 MB, free: 4.883 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 sytem: 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.0005788/0.3193, allocations: 417.4 kB / 478.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.3195, allocations: 79.06 kB / 478.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001674/0.3212, allocations: 0.9903 MB / 479.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/0.3212, allocations: 15.94 kB / 479.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3212, allocations: 3.938 kB / 479.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.3213, allocations: 3.984 kB / 479.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003674/0.3249, allocations: 2.304 MB / 482 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.325, allocations: 0 / 482 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006916/0.3257, allocations: 151.8 kB / 482.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.466e-05/0.3258, allocations: 20.86 kB / 482.1 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.934e-05/0.3258, allocations: 15.98 kB / 482.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009144/0.3267, allocations: 1.284 MB / 483.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3268, allocations: 3.938 kB / 483.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002263/0.329, allocations: 1.661 MB / 485.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003463/0.3294, allocations: 252 kB / 485.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.836e-05/0.3295, allocations: 19.94 kB / 485.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004881/0.33, allocations: 51.94 kB / 485.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.3301, allocations: 64.47 kB / 485.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.141e-05/0.3302, allocations: 16 kB / 485.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005949/0.3308, allocations: 483 kB / 486 MB, free: 12.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3308, allocations: 0 / 486 MB, free: 12.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009292/0.3317, allocations: 264 kB / 486.2 MB, free: 12.54 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.0004255/0.3322, allocations: 158.3 kB / 486.4 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002011/0.3342, allocations: 1.249 MB / 487.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3342, allocations: 0 / 487.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008601/0.3351, allocations: 0.6162 MB / 488.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.3362, allocations: 218.8 kB / 488.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004443/0.3407, allocations: 3.132 MB / 491.6 MB, free: 7.094 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007376/0.3414, allocations: 1.161 MB / 492.7 MB, free: 5.906 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000748/0.3422, allocations: 262.9 kB / 493 MB, free: 5.645 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002087/0.3424, allocations: 67.42 kB / 493.1 MB, free: 5.578 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3424, allocations: 0 / 493.1 MB, free: 5.578 MB / 366.1 MB Notification: Performance of Templates: time 0.01958/0.362, allocations: 11.5 MB / 0.4927 GB, free: 10.11 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1) Environment - environmentSimulation: