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.001413/0.001413, allocations: 114.9 kB / 17.74 MB, free: 5.293 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.001536/0.001536, allocations: 188.4 kB / 18.67 MB, free: 4.375 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.468/1.468, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1825/0.1825, allocations: 37.97 MB / 309.9 MB, free: 5.938 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.001593/0.001593, allocations: 79 kB / 432.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1046, allocations: 55.24 MB / 487.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.0094/0.1141, allocations: 6.326 MB / 494.1 MB, free: 1.961 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004793/0.1189, allocations: 2.723 MB / 496.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006501/0.1196, allocations: 27.88 kB / 496.9 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.1211, allocations: 338 kB / 497.2 MB, free: 14.87 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.001886/0.123, allocations: 0.5792 MB / 497.8 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008455/0.1239, allocations: 287.5 kB / 498 MB, free: 14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001884/0.1258, allocations: 1.196 MB / 499.2 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001277/0.1271, allocations: 0.869 MB / 0.4884 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009363/0.128, allocations: 0.4905 MB / 0.4889 GB, free: 11.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.1291, allocations: 0.5255 MB / 0.4894 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002925/0.1294, allocations: 88 kB / 0.4895 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007966/0.1302, allocations: 331.5 kB / 0.4898 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004415/0.1307, allocations: 335.2 kB / 0.4901 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007501/0.1315, allocations: 462 kB / 0.4905 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001694/0.1332, allocations: 1.371 MB / 0.4919 GB, free: 8.348 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1332, allocations: 0 / 0.4919 GB, free: 8.348 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1332, allocations: 3.938 kB / 0.4919 GB, free: 8.344 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.838e-05/0.1332, allocations: 0 / 0.4919 GB, free: 8.344 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.002669/0.1359, allocations: 1.141 MB / 0.493 GB, free: 7.152 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.136, allocations: 15.88 kB / 0.493 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007387/0.1367, allocations: 131.8 kB / 0.4931 GB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.138, allocations: 0.7021 MB / 0.4938 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.1381, allocations: 79.64 kB / 0.4939 GB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.1383, allocations: 64 kB / 0.494 GB, free: 6.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.1399, allocations: 0.957 MB / 0.4949 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.081e-05/0.1399, allocations: 7.938 kB / 0.4949 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-05/0.14, allocations: 31.98 kB / 0.4949 GB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001047/0.1401, allocations: 61.28 kB / 0.495 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.1415, allocations: 0.7741 MB / 0.4957 GB, free: 4.238 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.00526/0.1468, allocations: 3.84 MB / 0.4995 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008277/0.1476, allocations: 0.5091 MB / 0.5 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004252/0.1481, allocations: 242.5 kB / 0.5002 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.1481, allocations: 4 kB / 0.5002 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.1482, allocations: 46.55 kB / 0.5003 GB, free: 15.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 3.696e-06/0.1482, allocations: 0 / 0.5003 GB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01074/0.1589, allocations: 3.747 MB / 0.5039 GB, free: 11.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/0.159, allocations: 115.2 kB / 0.504 GB, free: 11.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006842/0.1597, allocations: 0.5222 MB / 0.5046 GB, free: 10.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.957e-05/0.1598, allocations: 41.73 kB / 0.5046 GB, free: 10.7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.1601, allocations: 399 kB / 0.505 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.1602, allocations: 185.3 kB / 0.5052 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.1604, allocations: 130.6 kB / 0.5053 GB, free: 9.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1606, allocations: 370.8 kB / 0.5056 GB, free: 9.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004825/0.1611, allocations: 281.8 kB / 0.5059 GB, free: 9.332 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006058/0.1617, allocations: 0.4994 MB / 0.5064 GB, free: 8.734 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.1628, allocations: 0.852 MB / 0.5072 GB, free: 7.781 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.1628, allocations: 4 kB / 0.5072 GB, free: 7.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003305/0.1662, allocations: 1.449 MB / 0.5086 GB, free: 6.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.1662, allocations: 8 kB / 0.5086 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.1662, allocations: 4 kB / 0.5086 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.1678, allocations: 459.3 kB / 0.5091 GB, free: 5.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004394/0.1682, allocations: 111.8 kB / 0.5092 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/0.179, allocations: 9.155 MB / 0.5181 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006941/0.1798, allocations: 23.98 kB / 0.5182 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.1799, allocations: 36 kB / 0.5182 GB, free: 11.89 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.0005558/0.1805, allocations: 309.6 kB / 0.5185 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/0.1806, allocations: 63.25 kB / 0.5185 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003/0.1836, allocations: 1.299 MB / 0.5198 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.1837, allocations: 8 kB / 0.5198 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.1837, allocations: 4.109 kB / 0.5198 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.1837, allocations: 7.922 kB / 0.5198 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004653/0.1884, allocations: 2.245 MB / 0.522 GB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.1884, allocations: 4 kB / 0.522 GB, free: 7.777 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003673/0.1888, allocations: 55.95 kB / 0.5221 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001388/0.1902, allocations: 435.1 kB / 0.5225 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.268e-05/0.1902, allocations: 16 kB / 0.5225 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2322/0.4225, allocations: 8.854 MB / 0.5312 GB, free: 49.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.4226, allocations: 9.109 kB / 0.5312 GB, free: 49.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003921/0.4265, allocations: 1.843 MB / 0.533 GB, free: 48.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003865/0.4269, allocations: 197.2 kB / 0.5332 GB, free: 48.46 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001433/0.4271, allocations: 12.08 kB / 0.5332 GB, free: 48.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004558/0.4275, allocations: 19.81 kB / 0.5332 GB, free: 48.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/0.4278, allocations: 62.89 kB / 0.5332 GB, free: 48.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.35e-05/0.4279, allocations: 17.39 kB / 0.5333 GB, free: 48.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005919/0.4284, allocations: 368.6 kB / 0.5336 GB, free: 48.37 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4285, allocations: 0 / 0.5336 GB, free: 48.37 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001472/0.4299, allocations: 254.4 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.0003623/0.4303, allocations: 141.9 kB / 0.534 GB, free: 48.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002491/0.4328, allocations: 1.343 MB / 0.5353 GB, free: 47.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4328, allocations: 1.5 kB / 0.5353 GB, free: 47.69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001511/0.4344, allocations: 0.9695 MB / 0.5363 GB, free: 47.04 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.4356, allocations: 171.3 kB / 0.5364 GB, free: 47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003368/0.4389, allocations: 1.73 MB / 0.5381 GB, free: 46.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00083/0.4398, allocations: 1.055 MB / 0.5391 GB, free: 45.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.44, allocations: 48.78 kB / 0.5392 GB, free: 45.41 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.44, allocations: 0 / 0.5392 GB, free: 45.41 MB / 414.1 MB Notification: Performance of Templates: time 0.03317/0.4732, allocations: 24.69 MB / 0.5633 GB, free: 31.99 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)