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.001093/0.001093, allocations: 90.83 kB / 16.3 MB, free: 6.133 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.0009672/0.0009673, allocations: 182.5 kB / 17.2 MB, free: 6.016 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.425/1.425, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1739/0.1739, allocations: 38.04 MB / 309.7 MB, free: 6.125 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.0006471/0.0006472, allocations: 12 kB / 376.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3187, allocations: 56.33 MB / 432.8 MB, free: 18.85 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.006554/0.3253, allocations: 6.914 MB / 439.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004843/0.3302, allocations: 3.022 MB / 442.7 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001114/0.3313, allocations: 47.69 kB / 442.8 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008917/0.3322, allocations: 218.7 kB / 443 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002161/0.3344, allocations: 0.6465 MB / 443.7 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009003/0.3353, allocations: 271.5 kB / 443.9 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001309/0.3367, allocations: 0.862 MB / 444.8 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001234/0.3379, allocations: 1.134 MB / 445.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005801/0.3385, allocations: 462.5 kB / 446.4 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005544/0.3391, allocations: 0.4984 MB / 446.9 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.723e-05/0.3392, allocations: 56 kB / 446.9 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000919/0.3401, allocations: 0.5772 MB / 447.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003069/0.3404, allocations: 383 kB / 447.9 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.3406, allocations: 253.1 kB / 448.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.3418, allocations: 1.66 MB / 449.8 MB, free: 1.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3418, allocations: 0 / 449.8 MB, free: 1.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3419, allocations: 0 / 449.8 MB, free: 1.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.3419, allocations: 0 / 449.8 MB, free: 1.777 MB / 318.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.002466/0.3443, allocations: 1.344 MB / 451.1 MB, free: 392 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.3444, allocations: 16.03 kB / 451.1 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006109/0.345, allocations: 174.4 kB / 451.3 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.3465, allocations: 0.7869 MB / 452.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002141/0.3467, allocations: 200.8 kB / 452.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001626/0.3469, allocations: 100 kB / 452.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002309/0.3492, allocations: 1.457 MB / 453.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.546e-05/0.3492, allocations: 7.906 kB / 453.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.74e-05/0.3493, allocations: 47.92 kB / 453.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001269/0.3495, allocations: 81.92 kB / 454 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002251/0.3517, allocations: 1.269 MB / 455.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007173/0.3589, allocations: 5.227 MB / 460.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.3606, allocations: 1.031 MB / 461.5 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.475e-05/0.3606, allocations: 21.22 kB / 461.5 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/0.3607, allocations: 47.05 kB / 461.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of pre-optimization done (n=74): time 4.228e-06/0.3607, allocations: 0 / 461.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of matching and sorting (n=78): time 0.007035/0.3677, allocations: 3.397 MB / 465 MB, free: 2.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.77e-05/0.3679, allocations: 115.4 kB / 465.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000896/0.3688, allocations: 0.6796 MB / 465.8 MB, free: 1.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.273e-05/0.3688, allocations: 45.7 kB / 465.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003774/0.3692, allocations: 486.7 kB / 466.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002398/0.3695, allocations: 264.2 kB / 466.5 MB, free: 396 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.72e-05/0.3695, allocations: 20 kB / 466.6 MB, free: 376 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002358/0.3698, allocations: 386.8 kB / 466.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006985/0.3705, allocations: 441.8 kB / 467.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000919/0.3714, allocations: 0.7165 MB / 468.1 MB, free: 14.71 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.004009/0.3754, allocations: 1.568 MB / 469.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.3754, allocations: 7.953 kB / 469.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002348/0.3778, allocations: 1.408 MB / 471.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.3778, allocations: 8 kB / 471.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.075e-05/0.3779, allocations: 8 kB / 471.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003182/0.3782, allocations: 114.8 kB / 471.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008148/0.379, allocations: 223.6 kB / 471.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/0.3812, allocations: 2.736 MB / 474.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006628/0.3819, allocations: 91.73 kB / 474.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.468e-05/0.382, allocations: 44.19 kB / 474.3 MB, free: 8.184 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[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 initialization (114): * Single equations (assignments): 110 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007069/0.3827, allocations: 417.8 kB / 474.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002236/0.3829, allocations: 79.05 kB / 474.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/0.3847, allocations: 1.086 MB / 475.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.02e-05/0.3848, allocations: 23.98 kB / 475.9 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3848, allocations: 3.938 kB / 475.9 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.3848, allocations: 7.938 kB / 475.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/0.3888, allocations: 2.38 MB / 478.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.3888, allocations: 0 / 478.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006409/0.3895, allocations: 135.8 kB / 478.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001267/0.3896, allocations: 53.66 kB / 478.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.741e-05/0.3897, allocations: 16 kB / 478.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00195/0.3916, allocations: 2.677 MB / 481.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3916, allocations: 0 / 481.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/0.3943, allocations: 1.789 MB / 482.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005751/0.3949, allocations: 248 kB / 483.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.395, allocations: 15.98 kB / 483.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004792/0.3955, allocations: 63.89 kB / 483.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.3957, allocations: 56.48 kB / 483.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.908e-05/0.3958, allocations: 23.98 kB / 483.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006992/0.3965, allocations: 475 kB / 483.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3965, allocations: 0 / 483.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00127/0.3978, allocations: 260 kB / 484.1 MB, free: 13.91 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 (69): * Single equations (assignments): 65 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005206/0.3983, allocations: 161.5 kB / 484.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002412/0.4007, allocations: 1.36 MB / 485.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4007, allocations: 0 / 485.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.4018, allocations: 0.7326 MB / 486.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008776/0.4027, allocations: 206.8 kB / 486.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004962/0.4076, allocations: 3.077 MB / 489.6 MB, free: 8.266 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008531/0.4085, allocations: 1.185 MB / 490.8 MB, free: 7.055 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007219/0.4092, allocations: 251 kB / 491 MB, free: 6.805 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/0.4094, allocations: 63.42 kB / 491.1 MB, free: 6.742 MB / 366.1 MB Notification: Performance of SimCode: time 1.213e-06/0.4095, allocations: 7.875 kB / 491.1 MB, free: 6.734 MB / 366.1 MB Notification: Performance of Templates: time 0.0196/0.4291, allocations: 11.44 MB / 0.4907 GB, free: 11.32 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: