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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 108.2 kB / 16.92 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 191.5 kB / 17.85 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1737/0.1737, allocations: 38.02 MB / 329.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 66.3 kB / 398.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1205, allocations: 58.06 MB / 456.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008364/0.1289, allocations: 6.329 MB / 463.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00427/0.1332, allocations: 2.676 MB / 465.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004349/0.1337, allocations: 23.88 kB / 465.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001383/0.1351, allocations: 338.1 kB / 466.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001396/0.1365, allocations: 0.587 MB / 466.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006239/0.1371, allocations: 283.5 kB / 467.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001364/0.1385, allocations: 1.192 MB / 468.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.1395, allocations: 0.8768 MB / 469.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006442/0.1402, allocations: 486.3 kB / 469.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006882/0.1409, allocations: 0.5294 MB / 470.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.141, allocations: 88 kB / 470.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005734/0.1416, allocations: 331.5 kB / 470.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003241/0.1419, allocations: 335.2 kB / 470.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004573/0.1424, allocations: 458 kB / 471.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001359/0.1438, allocations: 1.359 MB / 472.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1438, allocations: 0 / 472.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1438, allocations: 3.938 kB / 472.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.1438, allocations: 4 kB / 472.7 MB, free: 8.156 MB / 350.1 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.002167/0.146, allocations: 1.141 MB / 473.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.146, allocations: 11.89 kB / 473.9 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000639/0.1467, allocations: 139.8 kB / 474 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.1478, allocations: 0.6593 MB / 474.6 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.1479, allocations: 83.64 kB / 474.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.148, allocations: 67.94 kB / 474.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.1495, allocations: 0.9609 MB / 475.8 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.1495, allocations: 0 / 475.8 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.098e-05/0.1496, allocations: 28 kB / 475.8 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/0.1497, allocations: 57.28 kB / 475.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.1509, allocations: 0.7779 MB / 476.6 MB, free: 4.094 MB / 350.1 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.004913/0.1559, allocations: 3.871 MB / 480.5 MB, free: 0 / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008117/0.1567, allocations: 0.5241 MB / 481 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004323/0.1571, allocations: 232.6 kB / 481.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.1572, allocations: 12 kB / 481.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.1572, allocations: 38.5 kB / 481.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 4.228e-06/0.1572, allocations: 4 kB / 481.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01041/0.1677, allocations: 3.74 MB / 485 MB, free: 11.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.656e-05/0.1678, allocations: 115.2 kB / 485.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006925/0.1685, allocations: 0.5222 MB / 485.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.179e-05/0.1685, allocations: 33.7 kB / 485.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002823/0.1688, allocations: 399 kB / 486.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.169, allocations: 197.3 kB / 486.3 MB, free: 9.934 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002034/0.1692, allocations: 126.6 kB / 486.4 MB, free: 9.805 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.1694, allocations: 374.8 kB / 486.8 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004697/0.1698, allocations: 285.8 kB / 487.1 MB, free: 9.148 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006162/0.1705, allocations: 0.4994 MB / 487.6 MB, free: 8.543 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.1717, allocations: 0.8481 MB / 488.4 MB, free: 7.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.1717, allocations: 4 kB / 488.4 MB, free: 7.586 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003373/0.175, allocations: 1.445 MB / 489.8 MB, free: 6.086 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.1751, allocations: 8 kB / 489.9 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.1751, allocations: 8 kB / 489.9 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001573/0.1767, allocations: 463.2 kB / 490.3 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004315/0.1771, allocations: 115.8 kB / 490.4 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/0.1884, allocations: 9.143 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008426/0.1893, allocations: 27.98 kB / 499.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.1894, allocations: 36.06 kB / 499.6 MB, free: 11.72 MB / 382.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0007285/0.1902, allocations: 314.4 kB / 499.9 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003112/0.1905, allocations: 63.25 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003428/0.1939, allocations: 1.295 MB / 0.4895 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.194, allocations: 4 kB / 0.4896 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.194, allocations: 4 kB / 0.4896 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.308e-05/0.194, allocations: 11.98 kB / 0.4896 GB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005015/0.199, allocations: 2.244 MB / 0.4918 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.1991, allocations: 4 kB / 0.4918 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/0.1994, allocations: 63.89 kB / 0.4918 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/0.2009, allocations: 435.2 kB / 0.4922 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.918e-05/0.201, allocations: 12 kB / 0.4923 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01134/0.2123, allocations: 8.879 MB / 0.5009 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.2123, allocations: 4.031 kB / 0.5009 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003926/0.2163, allocations: 1.839 MB / 0.5027 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004423/0.2167, allocations: 196.3 kB / 0.5029 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.2169, allocations: 16 kB / 0.5029 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004438/0.2174, allocations: 19.98 kB / 0.5029 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.2176, allocations: 56.53 kB / 0.503 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.252e-05/0.2176, allocations: 19.94 kB / 0.503 GB, free: 11.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006276/0.2183, allocations: 370.8 kB / 0.5034 GB, free: 11.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.2183, allocations: 8.062 kB / 0.5034 GB, free: 11.04 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001282/0.2196, allocations: 248 kB / 0.5036 GB, free: 10.8 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004148/0.22, allocations: 141.2 kB / 0.5037 GB, free: 10.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002667/0.2227, allocations: 1.407 MB / 0.5051 GB, free: 9.184 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.2227, allocations: 1.438 kB / 0.5051 GB, free: 9.184 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.2242, allocations: 0.9703 MB / 0.5061 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.2253, allocations: 181.7 kB / 0.5062 GB, free: 7.992 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003239/0.2286, allocations: 1.681 MB / 0.5079 GB, free: 6.27 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008077/0.2294, allocations: 1.052 MB / 0.5089 GB, free: 5.188 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004529/0.2299, allocations: 113.7 kB / 0.509 GB, free: 5.074 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.23, allocations: 43.42 kB / 0.5091 GB, free: 5.031 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.23, allocations: 0 / 0.5091 GB, free: 5.031 MB / 398.1 MB Notification: Performance of Templates: time 0.2371/0.4671, allocations: 14.88 MB / 0.5236 GB, free: 67.64 MB / 398.1 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)