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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001061/0.001061, allocations: 114.3 kB / 17.75 MB, free: 5.305 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.0009904/0.0009904, allocations: 185.3 kB / 18.68 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1768/0.1768, allocations: 38.04 MB / 330.6 MB, free: 8.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 67.89 kB / 458.8 MB, free: 6.816 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2975, allocations: 58.05 MB / 0.5048 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007936/0.3055, allocations: 7.074 MB / 0.5117 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004486/0.31, allocations: 2.857 MB / 0.5145 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008392/0.3109, allocations: 34.34 kB / 0.5145 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001513/0.3124, allocations: 374.5 kB / 0.5149 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002378/0.3148, allocations: 0.7982 MB / 0.5156 GB, free: 196 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008573/0.3157, allocations: 299 kB / 0.5159 GB, free: 28 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002603/0.3183, allocations: 1.575 MB / 0.5175 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002316/0.3207, allocations: 1.427 MB / 0.5189 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001512/0.3222, allocations: 0.6547 MB / 0.5195 GB, free: 14.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001497/0.3237, allocations: 0.7529 MB / 0.5202 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002465/0.324, allocations: 140 kB / 0.5204 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001412/0.3254, allocations: 0.687 MB / 0.521 GB, free: 13.87 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005424/0.3259, allocations: 0.4999 MB / 0.5215 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007649/0.3267, allocations: 0.6512 MB / 0.5222 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002646/0.3294, allocations: 2.122 MB / 0.5242 GB, free: 12.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3294, allocations: 4.688 kB / 0.5242 GB, free: 12.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.3294, allocations: 4 kB / 0.5242 GB, free: 12.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.3294, allocations: 3.938 kB / 0.5242 GB, free: 12.49 MB / 398.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.003158/0.3326, allocations: 1.578 MB / 0.5258 GB, free: 11.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3326, allocations: 12.08 kB / 0.5258 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006567/0.3333, allocations: 170.3 kB / 0.526 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.3347, allocations: 0.8424 MB / 0.5268 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.3349, allocations: 206.9 kB / 0.527 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001822/0.3351, allocations: 102.7 kB / 0.5271 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002461/0.3376, allocations: 1.473 MB / 0.5285 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.503e-05/0.3377, allocations: 2.969 kB / 0.5285 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/0.3378, allocations: 44.42 kB / 0.5286 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001227/0.3379, allocations: 75.66 kB / 0.5286 GB, free: 9.945 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002089/0.34, allocations: 1.266 MB / 0.5299 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006756/0.3468, allocations: 5.185 MB / 0.5349 GB, free: 5.242 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.3483, allocations: 1.033 MB / 0.5359 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007847/0.3491, allocations: 0.4895 MB / 0.5364 GB, free: 4.297 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.556e-05/0.3492, allocations: 13.05 kB / 0.5364 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.3492, allocations: 45.81 kB / 0.5365 GB, free: 4.242 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 3.116e-06/0.3492, allocations: 0 / 0.5365 GB, free: 4.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006156/0.3554, allocations: 3.105 MB / 0.5395 GB, free: 2.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.3555, allocations: 115.1 kB / 0.5396 GB, free: 2.238 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008611/0.3563, allocations: 0.6863 MB / 0.5403 GB, free: 1.832 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.613e-05/0.3564, allocations: 37.33 kB / 0.5403 GB, free: 1.793 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.3567, allocations: 496.1 kB / 0.5408 GB, free: 1.355 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002168/0.3569, allocations: 284.8 kB / 0.5411 GB, free: 1.109 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002831/0.3572, allocations: 190.9 kB / 0.5412 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3574, allocations: 395.3 kB / 0.5416 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007101/0.3581, allocations: 440.5 kB / 0.542 GB, free: 412 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008589/0.359, allocations: 0.7142 MB / 0.5427 GB, free: 15.82 MB / 414.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.005408/0.3644, allocations: 2.582 MB / 0.5453 GB, free: 14.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.3644, allocations: 2.094 kB / 0.5453 GB, free: 14.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002347/0.3668, allocations: 1.313 MB / 0.5465 GB, free: 12.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.3668, allocations: 12 kB / 0.5466 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.3668, allocations: 8 kB / 0.5466 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002637/0.3671, allocations: 85.61 kB / 0.5466 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008668/0.368, allocations: 227.9 kB / 0.5469 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/0.369, allocations: 1.446 MB / 0.5483 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007353/0.3698, allocations: 75.95 kB / 0.5483 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.037e-05/0.3698, allocations: 43.98 kB / 0.5484 GB, free: 10.93 MB / 414.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.0006107/0.3705, allocations: 417.2 kB / 0.5488 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.3707, allocations: 87.48 kB / 0.5489 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/0.3723, allocations: 0.9862 MB / 0.5498 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.3723, allocations: 7.984 kB / 0.5498 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3724, allocations: 0 / 0.5498 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003543/0.3727, allocations: 252.4 kB / 0.5501 GB, free: 9.137 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.3728, allocations: 15.98 kB / 0.5501 GB, free: 9.121 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004966/0.3733, allocations: 55.94 kB / 0.5501 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.3735, allocations: 56.48 kB / 0.5502 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002128/0.3756, allocations: 1.257 MB / 0.5514 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002274/0.3779, allocations: 1.833 MB / 0.5532 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006611/0.3786, allocations: 488.4 kB / 0.5537 GB, free: 5.414 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005797/0.3792, allocations: 483 kB / 0.5541 GB, free: 4.949 MB / 414.1 MB Notification: Performance of Backend: time 2.41e-07/0.3792, allocations: 0 / 0.5541 GB, free: 4.949 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002313/0.3815, allocations: 1.036 MB / 0.5552 GB, free: 3.879 MB / 414.1 MB Notification: Performance of SimCode: time 0.003447/0.385, allocations: 2.681 MB / 0.5578 GB, free: 1.145 MB / 414.1 MB Notification: Performance of Templates: time 0.02537/0.4104, allocations: 15.37 MB / 0.5728 GB, free: 1.875 MB / 430.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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)