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.001599/0.001607, allocations: 100.9 kB / 17.06 MB, free: 6.145 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.00175/0.00175, allocations: 195 kB / 18 MB, free: 5.223 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.529/1.529, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.177/0.177, allocations: 37.99 MB / 309.2 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.001448/0.001448, allocations: 67.91 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1203, allocations: 55.24 MB / 487.1 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.00745/0.1278, allocations: 5.383 MB / 492.5 MB, free: 2.918 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008666/0.1365, allocations: 4.199 MB / 496.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007053/0.1373, allocations: 15.94 kB / 496.7 MB, free: 14.69 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.009728/0.147, allocations: 4.835 MB / 0.4898 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001133/0.1482, allocations: 350.3 kB / 0.4901 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007369/0.1489, allocations: 243.5 kB / 0.4904 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001962/0.1509, allocations: 1.567 MB / 0.4919 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005863/0.1515, allocations: 384.2 kB / 0.4923 GB, free: 7.312 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004793/0.152, allocations: 386.5 kB / 0.4926 GB, free: 6.934 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005352/0.1526, allocations: 438.4 kB / 0.493 GB, free: 6.504 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.513e-05/0.1526, allocations: 44 kB / 0.4931 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002667/0.1529, allocations: 131.8 kB / 0.4932 GB, free: 6.332 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002443/0.1532, allocations: 275.2 kB / 0.4935 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002706/0.1534, allocations: 322.4 kB / 0.4938 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008012/0.1542, allocations: 0.7474 MB / 0.4945 GB, free: 4.996 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1543, allocations: 0 / 0.4945 GB, free: 4.996 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1543, allocations: 0 / 0.4945 GB, free: 4.996 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.1543, allocations: 7.984 kB / 0.4945 GB, free: 4.988 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.001721/0.156, allocations: 0.9094 MB / 0.4954 GB, free: 4.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.1561, allocations: 11.89 kB / 0.4954 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004564/0.1565, allocations: 92.06 kB / 0.4955 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.1577, allocations: 0.5528 MB / 0.496 GB, free: 3.336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/0.1577, allocations: 32.98 kB / 0.4961 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.839e-05/0.1578, allocations: 51.91 kB / 0.4961 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/0.1589, allocations: 0.653 MB / 0.4968 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/0.159, allocations: 11.94 kB / 0.4968 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.219e-05/0.159, allocations: 16 kB / 0.4968 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001565/0.1592, allocations: 48.97 kB / 0.4968 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007851/0.16, allocations: 495.6 kB / 0.4973 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003457/0.1635, allocations: 2.519 MB / 0.4998 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005303/0.164, allocations: 319.7 kB / 0.5001 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002564/0.1643, allocations: 182.5 kB / 0.5002 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.975e-05/0.1643, allocations: 4 kB / 0.5003 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.1644, allocations: 38.5 kB / 0.5003 GB, free: 14.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.625e-06/0.1644, allocations: 0 / 0.5003 GB, free: 14.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002621/0.167, allocations: 1.633 MB / 0.5019 GB, free: 13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.517e-05/0.1671, allocations: 106.8 kB / 0.502 GB, free: 12.87 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004145/0.1675, allocations: 429.9 kB / 0.5024 GB, free: 12.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.1675, allocations: 41.64 kB / 0.5024 GB, free: 12.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.1678, allocations: 303.6 kB / 0.5027 GB, free: 12.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.489e-05/0.1679, allocations: 126.2 kB / 0.5028 GB, free: 11.97 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.168, allocations: 82.25 kB / 0.5029 GB, free: 11.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1681, allocations: 362.7 kB / 0.5033 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.1684, allocations: 169 kB / 0.5034 GB, free: 11.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.1687, allocations: 301.8 kB / 0.5037 GB, free: 11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005903/0.1693, allocations: 495.7 kB / 0.5042 GB, free: 10.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1693, allocations: 0 / 0.5042 GB, free: 10.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001277/0.1706, allocations: 0.7994 MB / 0.505 GB, free: 9.625 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.1706, allocations: 11.91 kB / 0.505 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.1706, allocations: 4 kB / 0.505 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006278/0.1713, allocations: 205.7 kB / 0.5052 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003196/0.1716, allocations: 75.89 kB / 0.5053 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004261/0.1759, allocations: 4.235 MB / 0.5094 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002821/0.1762, allocations: 19.84 kB / 0.5094 GB, free: 4.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.68e-05/0.1762, allocations: 23.98 kB / 0.5094 GB, free: 4.766 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.0002966/0.1765, allocations: 225.7 kB / 0.5096 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.176e-05/0.1766, allocations: 47.44 kB / 0.5097 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008937/0.1775, allocations: 0.6371 MB / 0.5103 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1775, allocations: 4 kB / 0.5103 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1775, allocations: 4 kB / 0.5103 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1776, allocations: 3.984 kB / 0.5103 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001684/0.1792, allocations: 1.187 MB / 0.5115 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1793, allocations: 4 kB / 0.5115 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004402/0.1797, allocations: 63.95 kB / 0.5115 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001541/0.1799, allocations: 61.67 kB / 0.5116 GB, free: 2.367 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.223e-05/0.1799, allocations: 12 kB / 0.5116 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002049/0.182, allocations: 2.835 MB / 0.5144 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.182, allocations: 3.938 kB / 0.5144 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.1831, allocations: 0.9533 MB / 0.5153 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/0.1834, allocations: 144.5 kB / 0.5155 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.88e-05/0.1834, allocations: 11.94 kB / 0.5155 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.1837, allocations: 15.98 kB / 0.5155 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.564e-05/0.1838, allocations: 23.97 kB / 0.5155 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.1838, allocations: 19.98 kB / 0.5155 GB, free: 13.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003363/0.1841, allocations: 291.1 kB / 0.5158 GB, free: 13.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1841, allocations: 0 / 0.5158 GB, free: 13.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006332/0.1848, allocations: 128 kB / 0.5159 GB, free: 13.57 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.000187/0.185, allocations: 115.2 kB / 0.516 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.1863, allocations: 0.7508 MB / 0.5168 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1864, allocations: 0 / 0.5168 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005331/0.1869, allocations: 417.7 kB / 0.5172 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007698/0.1877, allocations: 118.7 kB / 0.5173 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.1899, allocations: 1.465 MB / 0.5187 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005716/0.1905, allocations: 0.9482 MB / 0.5196 GB, free: 9.652 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002681/0.1908, allocations: 100.4 kB / 0.5197 GB, free: 9.551 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.1909, allocations: 39.42 kB / 0.5198 GB, free: 9.512 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1909, allocations: 0 / 0.5198 GB, free: 9.512 MB / 414.1 MB Notification: Performance of Templates: time 0.01351/0.2044, allocations: 7.07 MB / 0.5267 GB, free: 2.43 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)