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.001511/0.001512, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.001882/0.001882, allocations: 200 kB / 18.01 MB, free: 5.066 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.419/1.419, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1674/0.1674, allocations: 38.04 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 59.91 kB / 458.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.4013, allocations: 58.06 MB / 0.5041 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.008131/0.4095, allocations: 7.077 MB / 0.511 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004794/0.4143, allocations: 2.864 MB / 0.5138 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009483/0.4153, allocations: 26.44 kB / 0.5138 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001375/0.4167, allocations: 375.1 kB / 0.5142 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002561/0.4193, allocations: 0.7871 MB / 0.515 GB, free: 272 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008853/0.4202, allocations: 302.4 kB / 0.5152 GB, free: 100 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002659/0.4229, allocations: 1.569 MB / 0.5168 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003512/0.4264, allocations: 1.43 MB / 0.5182 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002475/0.429, allocations: 0.6425 MB / 0.5188 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001458/0.4304, allocations: 0.7445 MB / 0.5195 GB, free: 14.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002547/0.4307, allocations: 139.9 kB / 0.5197 GB, free: 14.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001805/0.4325, allocations: 0.6829 MB / 0.5203 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008489/0.4334, allocations: 0.4987 MB / 0.5208 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000984/0.4344, allocations: 0.6587 MB / 0.5215 GB, free: 13.31 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003394/0.4378, allocations: 2.125 MB / 0.5235 GB, free: 12.58 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4378, allocations: 0.75 kB / 0.5235 GB, free: 12.58 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4378, allocations: 2 kB / 0.5235 GB, free: 12.58 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.404e-05/0.4379, allocations: 0 / 0.5235 GB, free: 12.58 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.004578/0.4425, allocations: 1.576 MB / 0.5251 GB, free: 11.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.4425, allocations: 13.3 kB / 0.5251 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000805/0.4433, allocations: 171.2 kB / 0.5252 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.4449, allocations: 0.8414 MB / 0.5261 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002054/0.4451, allocations: 206.9 kB / 0.5263 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.4453, allocations: 103.1 kB / 0.5264 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002766/0.4481, allocations: 1.471 MB / 0.5278 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.512e-05/0.4481, allocations: 2.281 kB / 0.5278 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/0.4482, allocations: 49.67 kB / 0.5279 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001342/0.4484, allocations: 80.14 kB / 0.5279 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002137/0.4505, allocations: 1.262 MB / 0.5292 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007476/0.458, allocations: 5.179 MB / 0.5342 GB, free: 5.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001665/0.4597, allocations: 1.037 MB / 0.5352 GB, free: 4.633 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008416/0.4605, allocations: 0.4975 MB / 0.5357 GB, free: 4.363 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.635e-05/0.4606, allocations: 12.03 kB / 0.5357 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.4607, allocations: 43.19 kB / 0.5358 GB, free: 4.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 3.767e-06/0.4607, allocations: 4 kB / 0.5358 GB, free: 4.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006641/0.4673, allocations: 3.097 MB / 0.5388 GB, free: 2.445 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.3e-05/0.4674, allocations: 114.9 kB / 0.5389 GB, free: 2.312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009802/0.4684, allocations: 0.691 MB / 0.5396 GB, free: 1.902 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.066e-05/0.4685, allocations: 36.23 kB / 0.5396 GB, free: 1.863 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000385/0.4689, allocations: 492.1 kB / 0.5401 GB, free: 1.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002537/0.4691, allocations: 284.5 kB / 0.5404 GB, free: 1.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003102/0.4695, allocations: 191.8 kB / 0.5405 GB, free: 1.066 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002317/0.4697, allocations: 390.8 kB / 0.5409 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007474/0.4704, allocations: 441.6 kB / 0.5413 GB, free: 492 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009314/0.4714, allocations: 0.7175 MB / 0.542 GB, free: 15.89 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.005672/0.4771, allocations: 2.586 MB / 0.5446 GB, free: 14.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.4771, allocations: 2.781 kB / 0.5446 GB, free: 14.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002292/0.4794, allocations: 1.308 MB / 0.5458 GB, free: 13.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.4794, allocations: 12 kB / 0.5459 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.4795, allocations: 11.94 kB / 0.5459 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002667/0.4797, allocations: 86.23 kB / 0.5459 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008355/0.4806, allocations: 223.6 kB / 0.5462 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.4818, allocations: 1.45 MB / 0.5476 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007644/0.4825, allocations: 75.88 kB / 0.5476 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.338e-05/0.4826, allocations: 40 kB / 0.5477 GB, free: 10.98 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.0006568/0.4833, allocations: 420 kB / 0.5481 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/0.4835, allocations: 87.47 kB / 0.5482 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/0.4852, allocations: 0.9824 MB / 0.5491 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/0.4853, allocations: 19.97 kB / 0.5491 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-05/0.4853, allocations: 7.938 kB / 0.5492 GB, free: 9.438 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.4853, allocations: 3.984 kB / 0.5492 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003623/0.4889, allocations: 2.265 MB / 0.5514 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.4889, allocations: 0 / 0.5514 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007068/0.4897, allocations: 147.8 kB / 0.5515 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001018/0.4898, allocations: 24.84 kB / 0.5515 GB, free: 6.922 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.808e-05/0.4898, allocations: 15.94 kB / 0.5516 GB, free: 6.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.491, allocations: 1.386 MB / 0.5529 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.491, allocations: 3.984 kB / 0.5529 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002805/0.4938, allocations: 1.655 MB / 0.5545 GB, free: 3.699 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004502/0.4943, allocations: 248.5 kB / 0.5548 GB, free: 3.438 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.4944, allocations: 15.98 kB / 0.5548 GB, free: 3.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004843/0.4949, allocations: 51.95 kB / 0.5548 GB, free: 3.371 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.4951, allocations: 56.47 kB / 0.5549 GB, free: 3.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-05/0.4951, allocations: 20 kB / 0.5549 GB, free: 3.297 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000678/0.4958, allocations: 487 kB / 0.5554 GB, free: 2.828 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4958, allocations: 0 / 0.5554 GB, free: 2.828 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001281/0.4971, allocations: 259.8 kB / 0.5556 GB, free: 2.574 MB / 414.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.0003902/0.4975, allocations: 163.1 kB / 0.5558 GB, free: 2.406 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002275/0.4998, allocations: 1.244 MB / 0.557 GB, free: 1.121 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.4998, allocations: 0 / 0.557 GB, free: 1.121 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009712/0.5008, allocations: 0.6165 MB / 0.5576 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.5021, allocations: 233.4 kB / 0.5578 GB, free: 280 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004763/0.5069, allocations: 2.543 MB / 0.5603 GB, free: 13.69 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008107/0.5077, allocations: 1.161 MB / 0.5614 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008611/0.5086, allocations: 250.9 kB / 0.5617 GB, free: 12.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.5088, allocations: 71.42 kB / 0.5617 GB, free: 12.18 MB / 430.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5088, allocations: 0 / 0.5617 GB, free: 12.18 MB / 430.1 MB Notification: Performance of Templates: time 0.0263/0.5351, allocations: 12.52 MB / 0.574 GB, free: 15.76 MB / 446.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)