Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.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.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines") translateModel(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 111.5 kB / 17.06 MB, free: 6.102 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.001279/0.001279, allocations: 200 kB / 18 MB, free: 5.18 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.351/1.351, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1686/0.1686, allocations: 38 MB / 309.2 MB, free: 5.945 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.001507/0.001507, allocations: 71.89 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1252, allocations: 55.24 MB / 487.1 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007331/0.1325, allocations: 5.387 MB / 492.5 MB, free: 2.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007065/0.1396, allocations: 4.203 MB / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006915/0.1404, allocations: 15.94 kB / 496.7 MB, free: 14.7 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.009971/0.1504, allocations: 4.839 MB / 0.4898 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001215/0.1516, allocations: 338.3 kB / 0.4901 GB, free: 9.516 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008153/0.1524, allocations: 247.5 kB / 0.4904 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001948/0.1544, allocations: 1.559 MB / 0.4919 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006089/0.155, allocations: 392.2 kB / 0.4923 GB, free: 7.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004248/0.1554, allocations: 370.6 kB / 0.4926 GB, free: 6.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006329/0.1561, allocations: 438.4 kB / 0.493 GB, free: 6.531 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.672e-05/0.1562, allocations: 52 kB / 0.4931 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000338/0.1565, allocations: 131.7 kB / 0.4932 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002986/0.1568, allocations: 275.3 kB / 0.4935 GB, free: 6.082 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003648/0.1572, allocations: 322.4 kB / 0.4938 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009949/0.1582, allocations: 0.7435 MB / 0.4945 GB, free: 5.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.051e-05/0.1583, allocations: 0 / 0.4945 GB, free: 5.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.1583, allocations: 0 / 0.4945 GB, free: 5.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.1583, allocations: 0 / 0.4945 GB, free: 5.02 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002159/0.1605, allocations: 0.9211 MB / 0.4954 GB, free: 4.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.412e-05/0.1605, allocations: 11.89 kB / 0.4954 GB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000559/0.1611, allocations: 92.06 kB / 0.4955 GB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.1623, allocations: 0.5528 MB / 0.496 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.1624, allocations: 29 kB / 0.4961 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.1625, allocations: 55.89 kB / 0.4961 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.1637, allocations: 0.6453 MB / 0.4967 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.741e-05/0.1637, allocations: 3.938 kB / 0.4968 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-05/0.1638, allocations: 23.98 kB / 0.4968 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001387/0.164, allocations: 48.91 kB / 0.4968 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007304/0.1647, allocations: 499.6 kB / 0.4973 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00317/0.1679, allocations: 2.519 MB / 0.4998 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005621/0.1685, allocations: 311.6 kB / 0.5001 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002757/0.1687, allocations: 186.5 kB / 0.5002 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.583e-05/0.1688, allocations: 4 kB / 0.5002 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.1688, allocations: 46.5 kB / 0.5003 GB, free: 14.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.084e-06/0.1688, allocations: 0 / 0.5003 GB, free: 14.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002566/0.1714, allocations: 1.633 MB / 0.5019 GB, free: 13.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.719e-05/0.1715, allocations: 106.8 kB / 0.502 GB, free: 12.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000443/0.1719, allocations: 429.7 kB / 0.5024 GB, free: 12.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.172, allocations: 29.7 kB / 0.5024 GB, free: 12.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/0.1723, allocations: 307.7 kB / 0.5027 GB, free: 12.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.1724, allocations: 130.2 kB / 0.5028 GB, free: 11.99 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.1725, allocations: 82.25 kB / 0.5029 GB, free: 11.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.1727, allocations: 366.7 kB / 0.5033 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002597/0.173, allocations: 161 kB / 0.5034 GB, free: 11.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003896/0.1734, allocations: 305.7 kB / 0.5037 GB, free: 11.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006503/0.174, allocations: 483.7 kB / 0.5042 GB, free: 10.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1741, allocations: 4 kB / 0.5042 GB, free: 10.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001321/0.1754, allocations: 0.8072 MB / 0.505 GB, free: 9.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.1754, allocations: 8 kB / 0.505 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.1754, allocations: 4 kB / 0.505 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006284/0.1761, allocations: 209.5 kB / 0.5052 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003259/0.1764, allocations: 80.11 kB / 0.5052 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004613/0.181, allocations: 4.223 MB / 0.5094 GB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003339/0.1814, allocations: 27.84 kB / 0.5094 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.982e-05/0.1814, allocations: 27.98 kB / 0.5094 GB, free: 4.785 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003347/0.1818, allocations: 221.7 kB / 0.5096 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.644e-05/0.1819, allocations: 43.44 kB / 0.5097 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009248/0.1828, allocations: 0.6449 MB / 0.5103 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1828, allocations: 4 kB / 0.5103 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.1828, allocations: 0 / 0.5103 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.1829, allocations: 7.984 kB / 0.5103 GB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.1845, allocations: 1.183 MB / 0.5115 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1845, allocations: 3.938 kB / 0.5115 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004152/0.1849, allocations: 71.94 kB / 0.5115 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001649/0.1851, allocations: 57.61 kB / 0.5116 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/0.1851, allocations: 8 kB / 0.5116 GB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001915/0.1871, allocations: 2.831 MB / 0.5144 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.1871, allocations: 7.969 kB / 0.5144 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.1882, allocations: 0.9494 MB / 0.5153 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/0.1884, allocations: 148.5 kB / 0.5155 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.155e-05/0.1884, allocations: 12 kB / 0.5155 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.1887, allocations: 15.98 kB / 0.5155 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.591e-05/0.1888, allocations: 27.97 kB / 0.5155 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/0.1888, allocations: 8 kB / 0.5155 GB, free: 14.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003322/0.1891, allocations: 295.1 kB / 0.5158 GB, free: 13.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1891, allocations: 0 / 0.5158 GB, free: 13.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006259/0.1898, allocations: 132 kB / 0.5159 GB, free: 13.6 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001614/0.1899, allocations: 111.2 kB / 0.516 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001322/0.1913, allocations: 0.7471 MB / 0.5168 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/0.1913, allocations: 8.375 kB / 0.5168 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005131/0.1918, allocations: 413.7 kB / 0.5172 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007605/0.1926, allocations: 126 kB / 0.5173 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.1948, allocations: 1.461 MB / 0.5187 GB, free: 10.65 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004734/0.1953, allocations: 0.9404 MB / 0.5196 GB, free: 9.684 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002797/0.1955, allocations: 104.4 kB / 0.5197 GB, free: 9.578 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.1957, allocations: 39.44 kB / 0.5198 GB, free: 9.539 MB / 414.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1957, allocations: 0 / 0.5198 GB, free: 9.539 MB / 414.1 MB Notification: Performance of Templates: time 0.01444/0.2101, allocations: 7.074 MB / 0.5267 GB, free: 2.453 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)