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.001517/0.001517, allocations: 110.9 kB / 17.74 MB, free: 5.348 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.001148/0.001148, allocations: 192.5 kB / 18.67 MB, free: 4.426 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.388/1.388, allocations: 205.1 MB / 224.5 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.1796/0.1796, allocations: 37.98 MB / 309.9 MB, free: 5.953 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.001789/0.001789, allocations: 63.91 kB / 432.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1125, allocations: 55.24 MB / 487.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009008/0.1216, allocations: 6.334 MB / 494.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004795/0.1264, allocations: 2.719 MB / 496.8 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007044/0.1272, allocations: 35.81 kB / 496.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.1286, allocations: 338.5 kB / 497.2 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.001703/0.1303, allocations: 0.5792 MB / 497.8 MB, free: 14.31 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008132/0.1312, allocations: 287.5 kB / 498.1 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001732/0.1329, allocations: 1.192 MB / 499.2 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.1342, allocations: 0.8728 MB / 0.4884 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008621/0.1351, allocations: 498.3 kB / 0.4889 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009355/0.1361, allocations: 0.5255 MB / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000234/0.1363, allocations: 88 kB / 0.4895 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006847/0.137, allocations: 327.5 kB / 0.4898 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004048/0.1374, allocations: 343.1 kB / 0.4901 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006988/0.1381, allocations: 454 kB / 0.4905 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001632/0.1398, allocations: 1.371 MB / 0.4919 GB, free: 8.375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1398, allocations: 4 kB / 0.4919 GB, free: 8.371 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1398, allocations: 0 / 0.4919 GB, free: 8.371 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.843e-05/0.1398, allocations: 0 / 0.4919 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.002679/0.1425, allocations: 1.145 MB / 0.493 GB, free: 7.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.1426, allocations: 11.89 kB / 0.493 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007536/0.1433, allocations: 131.8 kB / 0.4931 GB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/0.1447, allocations: 0.7021 MB / 0.4938 GB, free: 6.289 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.1449, allocations: 83.62 kB / 0.4939 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.145, allocations: 67.98 kB / 0.494 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.1467, allocations: 0.9492 MB / 0.4949 GB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/0.1467, allocations: 4 kB / 0.4949 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.537e-05/0.1468, allocations: 31.98 kB / 0.4949 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/0.1469, allocations: 65.22 kB / 0.495 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.1483, allocations: 0.7818 MB / 0.4958 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.005553/0.1539, allocations: 3.836 MB / 0.4995 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008503/0.1548, allocations: 0.5052 MB / 0.5 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004469/0.1552, allocations: 246.5 kB / 0.5002 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.011e-05/0.1553, allocations: 4 kB / 0.5002 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.1553, allocations: 42.5 kB / 0.5003 GB, free: 15.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 4.218e-06/0.1553, allocations: 0 / 0.5003 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01091/0.1663, allocations: 3.747 MB / 0.5039 GB, free: 11.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.672e-05/0.1664, allocations: 123.1 kB / 0.5041 GB, free: 11.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007041/0.1671, allocations: 0.5183 MB / 0.5046 GB, free: 10.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.729e-05/0.1671, allocations: 37.7 kB / 0.5046 GB, free: 10.72 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000263/0.1674, allocations: 403 kB / 0.505 GB, free: 10.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.1676, allocations: 189.3 kB / 0.5052 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002019/0.1678, allocations: 130.6 kB / 0.5053 GB, free: 10 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.168, allocations: 370.8 kB / 0.5056 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004867/0.1684, allocations: 281.8 kB / 0.5059 GB, free: 9.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006074/0.1691, allocations: 0.4994 MB / 0.5064 GB, free: 8.754 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.1702, allocations: 0.8442 MB / 0.5072 GB, free: 7.809 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.395e-06/0.1702, allocations: 4 kB / 0.5072 GB, free: 7.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003353/0.1736, allocations: 1.449 MB / 0.5086 GB, free: 6.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.1736, allocations: 8 kB / 0.5086 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/0.1737, allocations: 8 kB / 0.5087 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001568/0.1752, allocations: 451.2 kB / 0.5091 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004383/0.1757, allocations: 115.8 kB / 0.5092 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/0.1868, allocations: 9.15 MB / 0.5181 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006894/0.1876, allocations: 23.98 kB / 0.5182 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.1877, allocations: 32 kB / 0.5182 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.0004916/0.1882, allocations: 317.7 kB / 0.5185 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000179/0.1884, allocations: 63.25 kB / 0.5185 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003206/0.1916, allocations: 1.295 MB / 0.5198 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.1916, allocations: 4 kB / 0.5198 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.1916, allocations: 4.109 kB / 0.5198 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.1917, allocations: 19.8 kB / 0.5198 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004745/0.1964, allocations: 2.241 MB / 0.522 GB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.1964, allocations: 4.094 kB / 0.522 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003367/0.1968, allocations: 63.89 kB / 0.5221 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001388/0.1982, allocations: 423.1 kB / 0.5225 GB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.828e-05/0.1983, allocations: 15.92 kB / 0.5225 GB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2218/0.4201, allocations: 8.86 MB / 0.5312 GB, free: 49.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.4201, allocations: 1.562 kB / 0.5312 GB, free: 49.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003536/0.4237, allocations: 1.851 MB / 0.533 GB, free: 48.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003354/0.424, allocations: 195.6 kB / 0.5332 GB, free: 48.46 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.883e-05/0.4241, allocations: 12.61 kB / 0.5332 GB, free: 48.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003961/0.4245, allocations: 23.78 kB / 0.5332 GB, free: 48.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001997/0.4248, allocations: 60.66 kB / 0.5332 GB, free: 48.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.712e-05/0.4248, allocations: 15.45 kB / 0.5333 GB, free: 48.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004652/0.4253, allocations: 370.2 kB / 0.5336 GB, free: 48.37 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4253, allocations: 0 / 0.5336 GB, free: 48.37 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001004/0.4263, allocations: 257.2 kB / 0.5339 GB, free: 48.37 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.0002667/0.4266, allocations: 137 kB / 0.534 GB, free: 48.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.4287, allocations: 1.34 MB / 0.5353 GB, free: 47.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4287, allocations: 3.562 kB / 0.5353 GB, free: 47.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001243/0.4299, allocations: 0.9715 MB / 0.5363 GB, free: 47.03 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009782/0.4309, allocations: 185.2 kB / 0.5364 GB, free: 46.99 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.4335, allocations: 1.72 MB / 0.5381 GB, free: 46.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005836/0.4341, allocations: 1.047 MB / 0.5391 GB, free: 45.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.4342, allocations: 53.84 kB / 0.5392 GB, free: 45.4 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4343, allocations: 3.375 kB / 0.5392 GB, free: 45.4 MB / 414.1 MB Notification: Performance of Templates: time 0.02592/0.4602, allocations: 24.79 MB / 0.5634 GB, free: 31.96 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)