Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/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_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001362/0.001362, allocations: 179.5 kB / 17.4 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.463/1.463, allocations: 194.5 MB / 212.6 MB, free: 2.844 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001587/0.001587, allocations: 132.2 kB / 257.9 MB, free: 4.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1781/0.1781, allocations: 38.02 MB / 341.1 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003559, allocations: 16 kB / 405 MB, free: 68.46 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0876/0.08797, allocations: 53.23 MB / 458.3 MB, free: 15.22 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3656/0.4536, allocations: 107.7 MB / 0.5527 GB, free: 3.379 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.454, allocations: 109.6 kB / 0.5528 GB, free: 3.324 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07166/0.5257, allocations: 25.78 MB / 0.5779 GB, free: 13.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.786e-06/0.5257, allocations: 0 / 0.5779 GB, free: 13.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.655e-05/0.5258, allocations: 24 kB / 0.578 GB, free: 13.27 MB / 394.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.002908/0.5288, allocations: 1.011 MB / 0.579 GB, free: 12.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.5288, allocations: 8.031 kB / 0.579 GB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005985/0.5294, allocations: 111.9 kB / 0.5791 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.5312, allocations: 0.749 MB / 0.5798 GB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.5313, allocations: 88.55 kB / 0.5799 GB, free: 11.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001682/0.5315, allocations: 66.69 kB / 0.58 GB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001607/0.5331, allocations: 0.9685 MB / 0.5809 GB, free: 10.65 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.605e-05/0.5331, allocations: 3.938 kB / 0.5809 GB, free: 10.65 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.027e-05/0.5332, allocations: 31.17 kB / 0.5809 GB, free: 10.64 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/0.5333, allocations: 53.11 kB / 0.581 GB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.5347, allocations: 0.7712 MB / 0.5817 GB, free: 10.08 MB / 394.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.005083/0.5398, allocations: 3.849 MB / 0.5855 GB, free: 6.711 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007264/0.5405, allocations: 443.7 kB / 0.5859 GB, free: 6.379 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000458/0.541, allocations: 281.1 kB / 0.5862 GB, free: 6.176 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-05/0.5411, allocations: 4.594 kB / 0.5862 GB, free: 6.172 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/0.5411, allocations: 50.36 kB / 0.5862 GB, free: 6.117 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 2.435e-06/0.5411, allocations: 0 / 0.5862 GB, free: 6.117 MB / 394.7 MB Notification: Performance of matching and sorting (n=55): time 0.01076/0.5519, allocations: 3.979 MB / 0.5901 GB, free: 2.754 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.618e-05/0.552, allocations: 115.2 kB / 0.5902 GB, free: 2.617 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007846/0.5528, allocations: 0.5031 MB / 0.5907 GB, free: 2.215 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.241e-05/0.5529, allocations: 36.45 kB / 0.5908 GB, free: 2.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003822/0.5533, allocations: 399.2 kB / 0.5911 GB, free: 1.879 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002459/0.5536, allocations: 190 kB / 0.5913 GB, free: 1.715 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.5536, allocations: 11.56 kB / 0.5913 GB, free: 1.715 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002104/0.5539, allocations: 373.6 kB / 0.5917 GB, free: 1.367 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006932/0.5546, allocations: 282.3 kB / 0.592 GB, free: 1.191 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008475/0.5554, allocations: 0.5092 MB / 0.5925 GB, free: 0.6992 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.5571, allocations: 0.8563 MB / 0.5933 GB, free: 20 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.184e-05/0.5571, allocations: 7.938 kB / 0.5933 GB, free: 12 kB / 394.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00461/0.5617, allocations: 1.591 MB / 0.5949 GB, free: 14.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.741e-05/0.5618, allocations: 11.91 kB / 0.5949 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/0.5618, allocations: 8 kB / 0.5949 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002211/0.564, allocations: 0.4986 MB / 0.5954 GB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005515/0.5646, allocations: 103.8 kB / 0.5955 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01459/0.5792, allocations: 9.98 MB / 0.6052 GB, free: 3.496 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009651/0.5802, allocations: 35.83 kB / 0.6052 GB, free: 3.461 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.031e-05/0.5803, allocations: 28 kB / 0.6053 GB, free: 3.434 MB / 410.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 (59): * Single equations (assignments): 54 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(3,88.9%) 8,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007051/0.581, allocations: 316.8 kB / 0.6056 GB, free: 3.117 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.5812, allocations: 63.25 kB / 0.6056 GB, free: 3.055 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/0.5844, allocations: 1.461 MB / 0.6071 GB, free: 1.508 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.5844, allocations: 8 kB / 0.6071 GB, free: 1.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.5845, allocations: 4 kB / 0.6071 GB, free: 1.496 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.5845, allocations: 0 / 0.6071 GB, free: 1.496 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006198/0.5907, allocations: 2.378 MB / 0.6094 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.5907, allocations: 0 / 0.6094 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004205/0.5912, allocations: 51.91 kB / 0.6094 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001992/0.5932, allocations: 491.9 kB / 0.6099 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.343e-05/0.5932, allocations: 19.98 kB / 0.6099 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01427/0.6075, allocations: 9.721 MB / 0.6194 GB, free: 4.023 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.6076, allocations: 4.031 kB / 0.6194 GB, free: 4.02 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004166/0.6118, allocations: 1.992 MB / 0.6214 GB, free: 1.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003728/0.6122, allocations: 188.3 kB / 0.6216 GB, free: 1.727 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.43e-05/0.6123, allocations: 12 kB / 0.6216 GB, free: 1.715 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003506/0.6126, allocations: 19.98 kB / 0.6216 GB, free: 1.695 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/0.6129, allocations: 60.41 kB / 0.6216 GB, free: 1.637 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.94e-05/0.6129, allocations: 20.06 kB / 0.6217 GB, free: 1.617 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005294/0.6135, allocations: 350.8 kB / 0.622 GB, free: 1.277 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6135, allocations: 0 / 0.622 GB, free: 1.277 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001175/0.6146, allocations: 244 kB / 0.6222 GB, free: 1.039 MB / 426.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 (29): * Single equations (assignments): 23 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 8,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003212/0.615, allocations: 155.6 kB / 0.6224 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002651/0.6176, allocations: 1.49 MB / 0.6238 GB, free: 15.32 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.6176, allocations: 0 / 0.6238 GB, free: 15.32 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001798/0.6195, allocations: 1.11 MB / 0.6249 GB, free: 14.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001097/0.6206, allocations: 166.2 kB / 0.6251 GB, free: 13.98 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002996/0.6236, allocations: 2.036 MB / 0.6271 GB, free: 11.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007325/0.6243, allocations: 1.056 MB / 0.6281 GB, free: 10.82 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000396/0.6247, allocations: 101.7 kB / 0.6282 GB, free: 10.72 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.415e-05/0.6248, allocations: 39.44 kB / 0.6282 GB, free: 10.68 MB / 442.7 MB Notification: Performance of SimCode: time 8.71e-07/0.6248, allocations: 0 / 0.6282 GB, free: 10.68 MB / 442.7 MB Notification: Performance of Templates: time 0.02301/0.6478, allocations: 13.9 MB / 0.6418 GB, free: 12.77 MB / 458.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)