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.0024/0.002405, allocations: 355.5 kB / 16.57 MB, free: 5.59 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 3.189/3.189, allocations: 388.9 MB / 406.2 MB, free: 6.938 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00336/0.00336, allocations: 224.4 kB / 451.6 MB, free: 0.5938 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6274/0.6274, allocations: 76.04 MB / 0.5594 GB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004612/0.0004614, allocations: 8 kB / 0.6216 GB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2663, allocations: 53.22 MB / 0.6736 GB, free: 62.63 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.006944/0.2733, allocations: 7.233 MB / 0.6807 GB, free: 55.37 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004578/0.2779, allocations: 3.016 MB / 0.6836 GB, free: 52.36 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004862/0.2784, allocations: 51.62 kB / 0.6837 GB, free: 52.31 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005417/0.279, allocations: 204.8 kB / 0.6839 GB, free: 52.11 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00153/0.2805, allocations: 0.7319 MB / 0.6846 GB, free: 51.38 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006838/0.2812, allocations: 275.5 kB / 0.6848 GB, free: 51.11 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001483/0.2827, allocations: 1.745 MB / 0.6865 GB, free: 49.36 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.2841, allocations: 1.13 MB / 0.6876 GB, free: 48.18 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005236/0.2846, allocations: 498 kB / 0.6881 GB, free: 47.69 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007947/0.2854, allocations: 0.6853 MB / 0.6888 GB, free: 47 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.2856, allocations: 56 kB / 0.6888 GB, free: 46.95 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009682/0.2866, allocations: 0.6122 MB / 0.6894 GB, free: 46.34 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003709/0.2869, allocations: 422.8 kB / 0.6898 GB, free: 45.92 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002175/0.2872, allocations: 253.1 kB / 0.6901 GB, free: 45.67 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.2886, allocations: 1.652 MB / 0.6917 GB, free: 44.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.176e-06/0.2886, allocations: 0 / 0.6917 GB, free: 44.01 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.641e-06/0.2886, allocations: 0 / 0.6917 GB, free: 44.01 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.2886, allocations: 0 / 0.6917 GB, free: 44.01 MB / 346.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.002624/0.2913, allocations: 1.352 MB / 0.693 GB, free: 42.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.2913, allocations: 12.03 kB / 0.693 GB, free: 42.6 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007249/0.292, allocations: 170.5 kB / 0.6932 GB, free: 42.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001394/0.2935, allocations: 0.7946 MB / 0.694 GB, free: 41.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001887/0.2937, allocations: 196.8 kB / 0.6942 GB, free: 41.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001848/0.2939, allocations: 104 kB / 0.6943 GB, free: 41.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002424/0.2963, allocations: 1.461 MB / 0.6957 GB, free: 39.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.182e-05/0.2964, allocations: 7.906 kB / 0.6957 GB, free: 39.74 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/0.2965, allocations: 51.94 kB / 0.6957 GB, free: 39.69 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/0.2966, allocations: 77.97 kB / 0.6958 GB, free: 39.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002408/0.2991, allocations: 1.257 MB / 0.697 GB, free: 38.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007336/0.3064, allocations: 5.231 MB / 0.7021 GB, free: 32.95 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.3081, allocations: 1.036 MB / 0.7032 GB, free: 31.85 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008921/0.309, allocations: 0.5 MB / 0.7036 GB, free: 31.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.87e-05/0.3091, allocations: 16.5 kB / 0.7037 GB, free: 31.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.3092, allocations: 39.12 kB / 0.7037 GB, free: 31.28 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 4.008e-06/0.3092, allocations: 0 / 0.7037 GB, free: 31.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=79): time 0.00639/0.3156, allocations: 3.383 MB / 0.707 GB, free: 27.81 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.3156, allocations: 119.4 kB / 0.7071 GB, free: 27.67 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008688/0.3165, allocations: 0.6797 MB / 0.7078 GB, free: 26.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.678e-05/0.3166, allocations: 37.7 kB / 0.7078 GB, free: 26.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000269/0.3169, allocations: 486.7 kB / 0.7083 GB, free: 26.46 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.3171, allocations: 268.1 kB / 0.7085 GB, free: 26.19 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.285e-05/0.3171, allocations: 20 kB / 0.7086 GB, free: 26.17 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.3173, allocations: 394.7 kB / 0.7089 GB, free: 25.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008394/0.3181, allocations: 446.1 kB / 0.7094 GB, free: 25.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009611/0.3191, allocations: 0.7183 MB / 0.7101 GB, free: 24.5 MB / 346.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.004822/0.3239, allocations: 1.584 MB / 0.7116 GB, free: 22.9 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.478e-06/0.324, allocations: 0 / 0.7116 GB, free: 22.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002516/0.3265, allocations: 1.316 MB / 0.7129 GB, free: 21.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.3265, allocations: 8.625 kB / 0.7129 GB, free: 21.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.3266, allocations: 8 kB / 0.7129 GB, free: 21.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002729/0.3268, allocations: 89.67 kB / 0.713 GB, free: 21.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.3279, allocations: 235.5 kB / 0.7132 GB, free: 21.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009193/0.3288, allocations: 1.339 MB / 0.7145 GB, free: 19.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007634/0.3296, allocations: 91.89 kB / 0.7146 GB, free: 19.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.297e-05/0.3297, allocations: 36 kB / 0.7146 GB, free: 19.64 MB / 346.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 (116): * Single equations (assignments): 113 * 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: 1 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005813/0.3303, allocations: 414.5 kB / 0.715 GB, free: 19.22 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.3305, allocations: 75.06 kB / 0.7151 GB, free: 19.15 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001945/0.3325, allocations: 1.01 MB / 0.7161 GB, free: 18.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.684e-05/0.3325, allocations: 16 kB / 0.7161 GB, free: 18.11 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.005e-06/0.3325, allocations: 0 / 0.7161 GB, free: 18.11 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.3326, allocations: 3.984 kB / 0.7161 GB, free: 18.1 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004078/0.3366, allocations: 2.293 MB / 0.7184 GB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.387e-06/0.3367, allocations: 0 / 0.7184 GB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008967/0.3376, allocations: 151.8 kB / 0.7185 GB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.915e-05/0.3377, allocations: 24.86 kB / 0.7185 GB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.769e-05/0.3378, allocations: 23.94 kB / 0.7185 GB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007641/0.3386, allocations: 1.283 MB / 0.7198 GB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.386e-06/0.3386, allocations: 0 / 0.7198 GB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.3413, allocations: 1.648 MB / 0.7214 GB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003927/0.3417, allocations: 252 kB / 0.7217 GB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.3418, allocations: 19.94 kB / 0.7217 GB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006271/0.3425, allocations: 55.94 kB / 0.7217 GB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.3426, allocations: 60.55 kB / 0.7218 GB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.913e-05/0.3427, allocations: 19.98 kB / 0.7218 GB, free: 12.03 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006085/0.3433, allocations: 483 kB / 0.7223 GB, free: 11.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.08e-07/0.3433, allocations: 0 / 0.7223 GB, free: 11.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001039/0.3444, allocations: 256 kB / 0.7225 GB, free: 11.32 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 (71): * Single equations (assignments): 68 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003163/0.3447, allocations: 157.5 kB / 0.7227 GB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002064/0.3468, allocations: 1.244 MB / 0.7239 GB, free: 9.879 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.927e-06/0.3468, allocations: 1.812 kB / 0.7239 GB, free: 9.879 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.3478, allocations: 0.615 MB / 0.7245 GB, free: 9.254 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.3492, allocations: 213.7 kB / 0.7247 GB, free: 9.051 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005148/0.3544, allocations: 3.077 MB / 0.7277 GB, free: 5.938 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007508/0.3552, allocations: 1.185 MB / 0.7288 GB, free: 4.727 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009781/0.3562, allocations: 250.9 kB / 0.7291 GB, free: 4.477 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002689/0.3565, allocations: 67.36 kB / 0.7291 GB, free: 4.41 MB / 346.7 MB Notification: Performance of SimCode: time 1.534e-06/0.3565, allocations: 4 kB / 0.7291 GB, free: 4.406 MB / 346.7 MB Notification: Performance of Templates: time 0.02553/0.382, allocations: 11.27 MB / 0.7401 GB, free: 9.223 MB / 362.7 MB