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.002604/0.002608, allocations: 362.2 kB / 17.21 MB, free: 4.93 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.9/3.9, allocations: 388.9 MB / 406.8 MB, free: 11.93 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003576/0.003575, allocations: 237.6 kB / 452.2 MB, free: 14.52 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.7517/0.7517, allocations: 76 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004529/0.0004531, allocations: 8 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.09234, allocations: 53.23 MB / 0.6742 GB, free: 60.82 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009176/0.1016, allocations: 7.224 MB / 0.6813 GB, free: 53.57 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.006297/0.1079, allocations: 3.029 MB / 0.6842 GB, free: 50.53 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009448/0.1089, allocations: 47.69 kB / 0.6843 GB, free: 50.48 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007951/0.1097, allocations: 206.6 kB / 0.6845 GB, free: 50.28 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002515/0.1123, allocations: 0.7309 MB / 0.6852 GB, free: 49.55 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001116/0.1134, allocations: 279.5 kB / 0.6855 GB, free: 49.27 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002374/0.1158, allocations: 1.737 MB / 0.6872 GB, free: 47.53 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001865/0.1177, allocations: 1.122 MB / 0.6883 GB, free: 46.36 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001006/0.1188, allocations: 0.4902 MB / 0.6887 GB, free: 45.86 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001283/0.1201, allocations: 0.6814 MB / 0.6894 GB, free: 45.18 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001826/0.1203, allocations: 60 kB / 0.6895 GB, free: 45.12 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001393/0.1217, allocations: 0.6122 MB / 0.6901 GB, free: 44.51 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005851/0.1223, allocations: 418.9 kB / 0.6905 GB, free: 44.1 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003582/0.1227, allocations: 249.1 kB / 0.6907 GB, free: 43.85 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0022/0.1249, allocations: 1.66 MB / 0.6923 GB, free: 42.18 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.125, allocations: 3.938 kB / 0.6923 GB, free: 42.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.125, allocations: 4 kB / 0.6923 GB, free: 42.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.969e-05/0.125, allocations: 0 / 0.6923 GB, free: 42.18 MB / 442.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.004415/0.1295, allocations: 1.336 MB / 0.6936 GB, free: 40.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.1295, allocations: 12.03 kB / 0.6936 GB, free: 40.78 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.1306, allocations: 174.5 kB / 0.6938 GB, free: 40.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001986/0.1326, allocations: 0.8024 MB / 0.6946 GB, free: 39.76 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002227/0.1329, allocations: 196.8 kB / 0.6948 GB, free: 39.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002624/0.1332, allocations: 107.9 kB / 0.6949 GB, free: 39.44 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003618/0.1368, allocations: 1.469 MB / 0.6963 GB, free: 37.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.485e-05/0.1369, allocations: 4 kB / 0.6963 GB, free: 37.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001432/0.137, allocations: 36 kB / 0.6963 GB, free: 37.87 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001804/0.1372, allocations: 81.91 kB / 0.6964 GB, free: 37.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003443/0.1407, allocations: 1.261 MB / 0.6977 GB, free: 36.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/0.1515, allocations: 5.223 MB / 0.7028 GB, free: 31.12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002396/0.154, allocations: 1.04 MB / 0.7038 GB, free: 30.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001199/0.1552, allocations: 0.5003 MB / 0.7043 GB, free: 29.51 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.73e-05/0.1553, allocations: 12.55 kB / 0.7043 GB, free: 29.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.1554, allocations: 39.06 kB / 0.7043 GB, free: 29.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=74): time 3.858e-06/0.1554, allocations: 4 kB / 0.7043 GB, free: 29.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=79): time 0.00845/0.1638, allocations: 3.383 MB / 0.7076 GB, free: 25.96 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.1639, allocations: 111.4 kB / 0.7077 GB, free: 25.83 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.1651, allocations: 0.6836 MB / 0.7084 GB, free: 25.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001843/0.1653, allocations: 37.7 kB / 0.7084 GB, free: 25.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003255/0.1657, allocations: 478.8 kB / 0.7089 GB, free: 24.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002911/0.166, allocations: 276.1 kB / 0.7092 GB, free: 24.35 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.612e-05/0.166, allocations: 16 kB / 0.7092 GB, free: 24.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1662, allocations: 398.7 kB / 0.7095 GB, free: 23.94 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.1674, allocations: 450 kB / 0.71 GB, free: 23.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.1688, allocations: 0.7183 MB / 0.7107 GB, free: 22.66 MB / 442.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.007604/0.1765, allocations: 1.576 MB / 0.7122 GB, free: 21.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.397e-06/0.1765, allocations: 4 kB / 0.7122 GB, free: 21.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.003343/0.1799, allocations: 1.313 MB / 0.7135 GB, free: 19.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.1799, allocations: 12 kB / 0.7135 GB, free: 19.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.273e-05/0.18, allocations: 8 kB / 0.7135 GB, free: 19.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003579/0.1803, allocations: 93.55 kB / 0.7136 GB, free: 19.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/0.1821, allocations: 231.7 kB / 0.7138 GB, free: 19.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.1832, allocations: 1.339 MB / 0.7151 GB, free: 17.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.1847, allocations: 87.8 kB / 0.7152 GB, free: 17.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.1848, allocations: 40 kB / 0.7153 GB, free: 17.79 MB / 442.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.0008732/0.1857, allocations: 420.7 kB / 0.7157 GB, free: 17.38 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003118/0.186, allocations: 86.98 kB / 0.7157 GB, free: 17.29 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002742/0.1888, allocations: 1.002 MB / 0.7167 GB, free: 16.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.906e-05/0.1889, allocations: 3.984 kB / 0.7167 GB, free: 16.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.1889, allocations: 4 kB / 0.7167 GB, free: 16.26 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005694/0.1895, allocations: 252.1 kB / 0.717 GB, free: 16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/0.1896, allocations: 16 kB / 0.717 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009212/0.1906, allocations: 59.92 kB / 0.717 GB, free: 15.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/0.1908, allocations: 52.48 kB / 0.7171 GB, free: 15.87 MB / 442.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00364/0.1944, allocations: 1.288 MB / 0.7184 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003465/0.198, allocations: 1.817 MB / 0.7201 GB, free: 12.73 MB / 442.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001024/0.199, allocations: 484.3 kB / 0.7206 GB, free: 12.26 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008415/0.1999, allocations: 479 kB / 0.721 GB, free: 11.8 MB / 442.7 MB Notification: Performance of Backend: time 9.62e-07/0.1999, allocations: 0 / 0.721 GB, free: 11.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003297/0.2032, allocations: 1.028 MB / 0.722 GB, free: 10.73 MB / 442.7 MB Notification: Performance of SimCode: time 0.005722/0.209, allocations: 3.158 MB / 0.7251 GB, free: 7.52 MB / 442.7 MB Notification: Performance of Templates: time 0.3258/0.5348, allocations: 13.68 MB / 0.7385 GB, free: 125.4 MB / 442.7 MB