Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001388/0.001388, allocations: 187.5 kB / 16.38 MB, free: 5.598 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.762/1.762, allocations: 194.5 MB / 211.6 MB, free: 11.35 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001763/0.001763, allocations: 116.7 kB / 256.9 MB, free: 14.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.3825/0.3825, allocations: 37.99 MB / 340.1 MB, free: 16.89 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004388/0.000439, allocations: 8 kB / 403.8 MB, free: 1.074 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2927, allocations: 53.22 MB / 457 MB, free: 34.5 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.006963/0.2997, allocations: 6.894 MB / 463.9 MB, free: 29.64 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004305/0.304, allocations: 3.019 MB / 466.9 MB, free: 27.5 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005954/0.3046, allocations: 47.44 kB / 467 MB, free: 27.48 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006279/0.3053, allocations: 215.6 kB / 467.2 MB, free: 27.37 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00155/0.3068, allocations: 0.6479 MB / 467.8 MB, free: 27.02 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007441/0.3076, allocations: 268 kB / 468.1 MB, free: 26.89 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.3087, allocations: 0.8636 MB / 469 MB, free: 26.46 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/0.31, allocations: 1.133 MB / 470.1 MB, free: 25.92 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005296/0.3106, allocations: 462.2 kB / 470.5 MB, free: 25.72 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006556/0.3112, allocations: 0.497 MB / 471 MB, free: 25.54 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001474/0.3114, allocations: 56.69 kB / 471.1 MB, free: 25.54 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.3125, allocations: 0.572 MB / 471.7 MB, free: 25.42 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004228/0.3129, allocations: 394.5 kB / 472.1 MB, free: 25.29 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002615/0.3132, allocations: 251.2 kB / 472.3 MB, free: 25.14 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001868/0.3151, allocations: 1.65 MB / 473.9 MB, free: 24.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.4e-06/0.3151, allocations: 5.219 kB / 474 MB, free: 24.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.874e-06/0.3151, allocations: 0 / 474 MB, free: 24.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.71e-05/0.3151, allocations: 0 / 474 MB, free: 24.82 MB / 330.7 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.002915/0.3181, allocations: 1.353 MB / 475.3 MB, free: 24.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.3181, allocations: 12.8 kB / 475.3 MB, free: 24.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007821/0.3189, allocations: 166.8 kB / 475.5 MB, free: 23.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.3205, allocations: 0.7866 MB / 476.3 MB, free: 23.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/0.3208, allocations: 208.7 kB / 476.5 MB, free: 23.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002398/0.321, allocations: 98.98 kB / 476.6 MB, free: 23.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002914/0.3239, allocations: 1.456 MB / 478 MB, free: 22.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.711e-05/0.324, allocations: 14.2 kB / 478 MB, free: 22.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/0.3242, allocations: 45.09 kB / 478.1 MB, free: 22.54 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001434/0.3243, allocations: 75.83 kB / 478.2 MB, free: 22.53 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002854/0.3272, allocations: 1.274 MB / 479.4 MB, free: 22.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008498/0.3357, allocations: 5.22 MB / 484.7 MB, free: 18.55 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.3376, allocations: 1.041 MB / 485.7 MB, free: 17.87 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.665e-05/0.3377, allocations: 12.73 kB / 485.7 MB, free: 17.86 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.3378, allocations: 41.78 kB / 485.7 MB, free: 17.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=74): time 4.196e-06/0.3378, allocations: 0 / 485.7 MB, free: 17.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=79): time 0.007541/0.3453, allocations: 3.677 MB / 489.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.3454, allocations: 123.1 kB / 489.5 MB, free: 15.31 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.3464, allocations: 0.6737 MB / 490.2 MB, free: 14.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.329e-05/0.3465, allocations: 36.8 kB / 490.3 MB, free: 14.87 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002726/0.3468, allocations: 491.4 kB / 490.7 MB, free: 14.44 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/0.347, allocations: 268.1 kB / 491 MB, free: 14.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.761e-05/0.3471, allocations: 19.25 kB / 491 MB, free: 14.19 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3472, allocations: 391.3 kB / 491.4 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009144/0.3482, allocations: 442.8 kB / 491.8 MB, free: 13.61 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.3492, allocations: 0.7148 MB / 492.5 MB, free: 12.92 MB / 330.7 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.004809/0.3541, allocations: 1.594 MB / 494.1 MB, free: 11.31 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.652e-06/0.3541, allocations: 4 kB / 494.1 MB, free: 11.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002687/0.3568, allocations: 1.408 MB / 495.5 MB, free: 9.863 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3569, allocations: 8 kB / 495.6 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.3569, allocations: 8 kB / 495.6 MB, free: 9.848 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003241/0.3572, allocations: 110.8 kB / 495.7 MB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009459/0.3582, allocations: 223.6 kB / 495.9 MB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/0.3599, allocations: 2.74 MB / 498.6 MB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009278/0.3608, allocations: 91.77 kB / 498.7 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.99e-05/0.3609, allocations: 43.98 kB / 498.8 MB, free: 6.367 MB / 330.7 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 (115): * Single equations (assignments): 111 * 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.0006815/0.3616, allocations: 418 kB / 499.2 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.3619, allocations: 82.97 kB / 499.3 MB, free: 5.867 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002091/0.364, allocations: 1.097 MB / 0.4886 GB, free: 4.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.714e-05/0.364, allocations: 16 kB / 0.4886 GB, free: 4.715 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.727e-06/0.364, allocations: 0 / 0.4886 GB, free: 4.715 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.3641, allocations: 11.92 kB / 0.4886 GB, free: 4.703 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004242/0.3683, allocations: 2.377 MB / 0.491 GB, free: 2.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.561e-06/0.3683, allocations: 0 / 0.491 GB, free: 2.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009032/0.3692, allocations: 143.8 kB / 0.4911 GB, free: 2.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001648/0.3694, allocations: 53.69 kB / 0.4912 GB, free: 2.031 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.682e-05/0.3695, allocations: 19.94 kB / 0.4912 GB, free: 2.012 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001936/0.3715, allocations: 2.673 MB / 0.4938 GB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.3715, allocations: 4.031 kB / 0.4938 GB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003585/0.3751, allocations: 1.767 MB / 0.4955 GB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005649/0.3757, allocations: 248 kB / 0.4958 GB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/0.3759, allocations: 23.94 kB / 0.4958 GB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006692/0.3766, allocations: 59.94 kB / 0.4958 GB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.3768, allocations: 60.42 kB / 0.4959 GB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.527e-05/0.3769, allocations: 19.98 kB / 0.4959 GB, free: 12.82 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000807/0.3777, allocations: 479 kB / 0.4964 GB, free: 12.36 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.14e-07/0.3777, allocations: 0 / 0.4964 GB, free: 12.36 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001405/0.3791, allocations: 264 kB / 0.4966 GB, free: 12.1 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.phi_el,bldcm.motor.w_el,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3]) * 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): 66 * 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.0004214/0.3796, allocations: 158.6 kB / 0.4968 GB, free: 11.94 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002789/0.3824, allocations: 1.358 MB / 0.4981 GB, free: 10.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.423e-06/0.3824, allocations: 0 / 0.4981 GB, free: 10.54 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.3838, allocations: 0.7309 MB / 0.4988 GB, free: 9.777 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.3849, allocations: 206.9 kB / 0.499 GB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006025/0.391, allocations: 3.084 MB / 0.502 GB, free: 6.457 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/0.3921, allocations: 1.181 MB / 0.5032 GB, free: 5.25 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001083/0.3932, allocations: 251 kB / 0.5034 GB, free: 5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.3935, allocations: 67.42 kB / 0.5035 GB, free: 4.934 MB / 346.7 MB Notification: Performance of SimCode: time 3.49e-06/0.3936, allocations: 0 / 0.5035 GB, free: 4.934 MB / 346.7 MB Notification: Performance of Templates: time 0.02762/0.4212, allocations: 11.47 MB / 0.5147 GB, free: 9.48 MB / 362.7 MB