Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002431/0.002431, allocations: 353.7 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.35/3.35, allocations: 388.9 MB / 406.2 MB, free: 12 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.003169/0.003169, allocations: 229.7 kB / 451.6 MB, free: 14.59 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.6207/0.6207, allocations: 76 MB / 0.5594 GB, free: 177.7 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004973/0.0004975, allocations: 12 kB / 0.6216 GB, free: 114.2 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06608/0.0666, allocations: 53.23 MB / 0.6736 GB, free: 60.94 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.005913/0.07256, allocations: 6.366 MB / 0.6798 GB, free: 54.54 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.003687/0.07627, allocations: 2.787 MB / 0.6825 GB, free: 51.75 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003696/0.07666, allocations: 39.75 kB / 0.6826 GB, free: 51.71 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005486/0.07722, allocations: 214.6 kB / 0.6828 GB, free: 51.5 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00103/0.07827, allocations: 0.5557 MB / 0.6833 GB, free: 50.94 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006305/0.07892, allocations: 251.5 kB / 0.6836 GB, free: 50.69 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001097/0.08005, allocations: 1.328 MB / 0.6849 GB, free: 49.36 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008418/0.08091, allocations: 0.7755 MB / 0.6856 GB, free: 48.55 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003879/0.08131, allocations: 390.4 kB / 0.686 GB, free: 48.16 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006452/0.08197, allocations: 0.4983 MB / 0.6865 GB, free: 47.66 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 8.481e-05/0.08207, allocations: 36 kB / 0.6865 GB, free: 47.63 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004274/0.08251, allocations: 267.5 kB / 0.6868 GB, free: 47.37 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002811/0.08281, allocations: 287.2 kB / 0.687 GB, free: 47.09 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.083, allocations: 181.3 kB / 0.6872 GB, free: 46.9 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008385/0.08385, allocations: 1.056 MB / 0.6883 GB, free: 45.84 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.073e-06/0.08387, allocations: 0 / 0.6883 GB, free: 45.84 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.722e-06/0.08388, allocations: 0 / 0.6883 GB, free: 45.84 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.0839, allocations: 7.938 kB / 0.6883 GB, free: 45.84 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.00173/0.08564, allocations: 1.001 MB / 0.6892 GB, free: 44.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.08568, allocations: 8.828 kB / 0.6892 GB, free: 44.78 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006613/0.08635, allocations: 138.8 kB / 0.6894 GB, free: 44.64 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.08747, allocations: 0.6429 MB / 0.69 GB, free: 43.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.764e-05/0.08759, allocations: 75.7 kB / 0.6901 GB, free: 43.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.08771, allocations: 67.91 kB / 0.6901 GB, free: 43.81 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.08913, allocations: 0.9608 MB / 0.6911 GB, free: 42.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.856e-05/0.08917, allocations: 0 / 0.6911 GB, free: 42.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-05/0.08926, allocations: 31.98 kB / 0.6911 GB, free: 42.77 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.722e-05/0.08937, allocations: 61.22 kB / 0.6912 GB, free: 42.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.09088, allocations: 0.7818 MB / 0.6919 GB, free: 41.93 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004665/0.09556, allocations: 3.864 MB / 0.6957 GB, free: 37.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008918/0.09647, allocations: 0.5129 MB / 0.6962 GB, free: 37.29 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004281/0.09692, allocations: 246.5 kB / 0.6964 GB, free: 37.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.09697, allocations: 7.938 kB / 0.6964 GB, free: 37.03 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/0.097, allocations: 38.56 kB / 0.6965 GB, free: 36.98 MB / 442.7 MB Notification: Performance of pre-optimization done (n=37): time 2.604e-06/0.09701, allocations: 0 / 0.6965 GB, free: 36.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=55): time 0.01118/0.1082, allocations: 3.809 MB / 0.7002 GB, free: 33.01 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.1083, allocations: 115.2 kB / 0.7003 GB, free: 32.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005964/0.1089, allocations: 0.5221 MB / 0.7008 GB, free: 32.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.254e-05/0.1089, allocations: 37.7 kB / 0.7009 GB, free: 32.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002299/0.1092, allocations: 399 kB / 0.7012 GB, free: 31.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.1093, allocations: 197.2 kB / 0.7014 GB, free: 31.71 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.998e-05/0.1094, allocations: 16.03 kB / 0.7014 GB, free: 31.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.307e-05/0.1095, allocations: 374.8 kB / 0.7018 GB, free: 31.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005097/0.11, allocations: 273.8 kB / 0.7021 GB, free: 31.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006267/0.1107, allocations: 0.5072 MB / 0.7026 GB, free: 30.44 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006538/0.1113, allocations: 364.6 kB / 0.7029 GB, free: 30.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.804e-06/0.1113, allocations: 4 kB / 0.7029 GB, free: 30.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003333/0.1147, allocations: 1.445 MB / 0.7043 GB, free: 28.58 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1147, allocations: 8.25 kB / 0.7043 GB, free: 28.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.1148, allocations: 12 kB / 0.7043 GB, free: 28.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001641/0.1164, allocations: 451 kB / 0.7048 GB, free: 28.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004742/0.1169, allocations: 127.7 kB / 0.7049 GB, free: 27.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009463/0.1264, allocations: 8.447 MB / 0.7131 GB, free: 18.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006637/0.1271, allocations: 35.89 kB / 0.7132 GB, free: 18.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.987e-05/0.1271, allocations: 28 kB / 0.7132 GB, free: 18.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004256/0.1276, allocations: 309.6 kB / 0.7135 GB, free: 18.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.1277, allocations: 59.3 kB / 0.7136 GB, free: 18.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003024/0.1308, allocations: 1.314 MB / 0.7148 GB, free: 17.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.05e-06/0.1308, allocations: 4 kB / 0.7148 GB, free: 17.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.417e-06/0.1308, allocations: 4 kB / 0.7148 GB, free: 17.17 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.531e-06/0.1308, allocations: 3.984 kB / 0.7148 GB, free: 17.17 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004431/0.1353, allocations: 2.256 MB / 0.7171 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.336e-06/0.1353, allocations: 3.938 kB / 0.7171 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003754/0.1357, allocations: 67.89 kB / 0.7171 GB, free: 14.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001491/0.1372, allocations: 455.4 kB / 0.7176 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-05/0.1372, allocations: 19.98 kB / 0.7176 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008817/0.1461, allocations: 8.181 MB / 0.7256 GB, free: 5.527 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.833e-06/0.1461, allocations: 0 / 0.7256 GB, free: 5.527 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003692/0.1498, allocations: 1.826 MB / 0.7273 GB, free: 3.625 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002844/0.1501, allocations: 196.3 kB / 0.7275 GB, free: 3.414 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.783e-05/0.1502, allocations: 15.98 kB / 0.7275 GB, free: 3.398 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004886/0.1507, allocations: 19.98 kB / 0.7276 GB, free: 3.379 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.1509, allocations: 52.48 kB / 0.7276 GB, free: 3.328 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.815e-05/0.151, allocations: 19.98 kB / 0.7276 GB, free: 3.309 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004454/0.1515, allocations: 370.9 kB / 0.728 GB, free: 2.949 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.1515, allocations: 0 / 0.728 GB, free: 2.949 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001028/0.1525, allocations: 252 kB / 0.7282 GB, free: 2.703 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (machine.motor.phi_el,machine.motor.w_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002788/0.1528, allocations: 136.6 kB / 0.7284 GB, free: 2.562 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002124/0.1549, allocations: 1.335 MB / 0.7297 GB, free: 1.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.522e-06/0.155, allocations: 0 / 0.7297 GB, free: 1.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.1563, allocations: 0.9784 MB / 0.7306 GB, free: 148 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2233/0.3796, allocations: 163.1 kB / 0.7308 GB, free: 126.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003221/0.3829, allocations: 2.006 MB / 0.7327 GB, free: 125.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007841/0.3837, allocations: 1.07 MB / 0.7338 GB, free: 124.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005362/0.3842, allocations: 110.2 kB / 0.7339 GB, free: 124.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.3844, allocations: 45.48 kB / 0.7339 GB, free: 124.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.712e-06/0.3844, allocations: 0 / 0.7339 GB, free: 124.8 MB / 442.7 MB Notification: Performance of Templates: time 0.02941/0.4138, allocations: 13.93 MB / 0.7475 GB, free: 124.4 MB / 442.7 MB