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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001214/0.001214, allocations: 105.1 kB / 17.05 MB, free: 6.027 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.001329/0.001329, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1838/0.1838, allocations: 37.99 MB / 309.2 MB, free: 5.965 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001447, allocations: 71.89 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1197, allocations: 55.24 MB / 487.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008553/0.1283, allocations: 6.334 MB / 493.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004387/0.1327, allocations: 2.723 MB / 496.2 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006277/0.1334, allocations: 27.81 kB / 496.2 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.1346, allocations: 334 kB / 496.5 MB, free: 14.89 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001669/0.1363, allocations: 0.587 MB / 497.1 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007988/0.1371, allocations: 287.5 kB / 497.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001638/0.1388, allocations: 1.192 MB / 498.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001021/0.1398, allocations: 0.8767 MB / 499.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007296/0.1405, allocations: 494.3 kB / 499.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007294/0.1413, allocations: 0.5255 MB / 0.4887 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.1414, allocations: 88 kB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005266/0.1419, allocations: 327.5 kB / 0.4891 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002885/0.1422, allocations: 343.1 kB / 0.4895 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004178/0.1427, allocations: 457.9 kB / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001477/0.1441, allocations: 1.371 MB / 0.4912 GB, free: 8.371 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1442, allocations: 0 / 0.4912 GB, free: 8.371 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1442, allocations: 0 / 0.4912 GB, free: 8.371 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1442, allocations: 0 / 0.4912 GB, free: 8.371 MB / 382.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.00231/0.1465, allocations: 1.145 MB / 0.4923 GB, free: 7.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.121e-05/0.1466, allocations: 15.89 kB / 0.4924 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006519/0.1472, allocations: 131.8 kB / 0.4925 GB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.1484, allocations: 0.6944 MB / 0.4932 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.1486, allocations: 91.56 kB / 0.4933 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.1487, allocations: 64 kB / 0.4933 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.1502, allocations: 0.953 MB / 0.4942 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.151e-05/0.1503, allocations: 4 kB / 0.4942 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.161e-05/0.1504, allocations: 31.97 kB / 0.4943 GB, free: 5.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/0.1505, allocations: 61.28 kB / 0.4943 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.1518, allocations: 0.7818 MB / 0.4951 GB, free: 4.258 MB / 382.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.004831/0.1566, allocations: 3.836 MB / 0.4988 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008147/0.1574, allocations: 0.509 MB / 0.4993 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003971/0.1579, allocations: 238.5 kB / 0.4996 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.1579, allocations: 8 kB / 0.4996 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/0.158, allocations: 42.5 kB / 0.4996 GB, free: 15.35 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.054e-06/0.158, allocations: 3.938 kB / 0.4996 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01068/0.1686, allocations: 3.743 MB / 0.5033 GB, free: 11.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.197e-05/0.1688, allocations: 119.2 kB / 0.5034 GB, free: 11.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007394/0.1695, allocations: 0.5222 MB / 0.5039 GB, free: 10.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.081e-05/0.1696, allocations: 29.7 kB / 0.5039 GB, free: 10.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002854/0.1699, allocations: 406.9 kB / 0.5043 GB, free: 10.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/0.1701, allocations: 193.3 kB / 0.5045 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.1703, allocations: 126.6 kB / 0.5046 GB, free: 10 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.1705, allocations: 374.8 kB / 0.505 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004554/0.1709, allocations: 277.8 kB / 0.5052 GB, free: 9.355 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006391/0.1716, allocations: 0.5033 MB / 0.5057 GB, free: 8.754 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.1728, allocations: 0.8442 MB / 0.5066 GB, free: 7.809 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1728, allocations: 0 / 0.5066 GB, free: 7.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00313/0.1759, allocations: 1.453 MB / 0.508 GB, free: 6.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.1759, allocations: 8.25 kB / 0.508 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.176, allocations: 12 kB / 0.508 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001535/0.1775, allocations: 451 kB / 0.5084 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004052/0.1779, allocations: 115.8 kB / 0.5085 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/0.1889, allocations: 9.139 MB / 0.5175 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007689/0.1897, allocations: 32.05 kB / 0.5175 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.513e-05/0.1898, allocations: 32 kB / 0.5175 GB, free: 11.93 MB / 414.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.0006132/0.1904, allocations: 309.5 kB / 0.5178 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.1906, allocations: 59.25 kB / 0.5179 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003034/0.1936, allocations: 1.303 MB / 0.5192 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.1937, allocations: 4.109 kB / 0.5192 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.1937, allocations: 7.938 kB / 0.5192 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.1937, allocations: 3.984 kB / 0.5192 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004307/0.198, allocations: 2.249 MB / 0.5214 GB, free: 7.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.198, allocations: 0 / 0.5214 GB, free: 7.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003083/0.1983, allocations: 63.89 kB / 0.5214 GB, free: 7.754 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001318/0.1997, allocations: 427.2 kB / 0.5218 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.667e-05/0.1997, allocations: 15.98 kB / 0.5218 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.277/0.4768, allocations: 8.87 MB / 0.5305 GB, free: 49.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.4768, allocations: 4.406 kB / 0.5305 GB, free: 49.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003734/0.4805, allocations: 1.845 MB / 0.5323 GB, free: 48.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003808/0.481, allocations: 195.9 kB / 0.5325 GB, free: 48.53 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.591e-05/0.481, allocations: 11.77 kB / 0.5325 GB, free: 48.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003749/0.4814, allocations: 19.69 kB / 0.5325 GB, free: 48.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002383/0.4817, allocations: 58.27 kB / 0.5326 GB, free: 48.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.297e-05/0.4817, allocations: 19.56 kB / 0.5326 GB, free: 48.53 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004891/0.4822, allocations: 370.6 kB / 0.533 GB, free: 48.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4822, allocations: 0 / 0.533 GB, free: 48.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001369/0.4836, allocations: 257.5 kB / 0.5332 GB, free: 48.44 MB / 414.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.0003301/0.4839, allocations: 141.1 kB / 0.5333 GB, free: 48.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002207/0.4861, allocations: 1.344 MB / 0.5347 GB, free: 47.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4862, allocations: 3.594 kB / 0.5347 GB, free: 47.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.4875, allocations: 0.9666 MB / 0.5356 GB, free: 47.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009636/0.4885, allocations: 171.6 kB / 0.5358 GB, free: 47.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003479/0.492, allocations: 1.667 MB / 0.5374 GB, free: 46.28 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008638/0.4929, allocations: 1.054 MB / 0.5384 GB, free: 45.53 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004529/0.4933, allocations: 113.5 kB / 0.5385 GB, free: 45.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.4935, allocations: 44.02 kB / 0.5386 GB, free: 45.52 MB / 414.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4935, allocations: 0 / 0.5386 GB, free: 45.52 MB / 414.1 MB Notification: Performance of Templates: time 0.028/0.5215, allocations: 15.44 MB / 0.5536 GB, free: 40.5 MB / 414.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)