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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 105.6 kB / 17.06 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.001218/0.001218, allocations: 195 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.386/1.386, 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.1868/0.1868, allocations: 37.99 MB / 309.2 MB, free: 5.961 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.001413/0.001413, allocations: 71.89 kB / 431.4 MB, free: 16.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1139, allocations: 55.24 MB / 486.6 MB, free: 8.973 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007109/0.1211, allocations: 5.371 MB / 492 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006901/0.128, allocations: 4.211 MB / 496.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004549/0.1285, allocations: 19.88 kB / 496.2 MB, free: 15.32 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.009547/0.1381, allocations: 4.828 MB / 0.4893 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.1392, allocations: 354.3 kB / 0.4896 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007171/0.14, allocations: 243.5 kB / 0.4899 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001844/0.1418, allocations: 1.563 MB / 0.4914 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005518/0.1424, allocations: 384.2 kB / 0.4918 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004504/0.1429, allocations: 386.5 kB / 0.4921 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005921/0.1435, allocations: 434.4 kB / 0.4925 GB, free: 7.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.556e-05/0.1435, allocations: 47.94 kB / 0.4926 GB, free: 7.105 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002917/0.1438, allocations: 119.8 kB / 0.4927 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002757/0.1441, allocations: 283.3 kB / 0.493 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003187/0.1445, allocations: 330.3 kB / 0.4933 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007586/0.1452, allocations: 0.7474 MB / 0.494 GB, free: 5.637 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1452, allocations: 0 / 0.494 GB, free: 5.637 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.1452, allocations: 3.984 kB / 0.494 GB, free: 5.633 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.1453, allocations: 0 / 0.494 GB, free: 5.633 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.001664/0.1469, allocations: 0.9056 MB / 0.4949 GB, free: 4.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.147, allocations: 15.89 kB / 0.4949 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.1471, allocations: 94.58 kB / 0.495 GB, free: 4.562 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004326/0.1475, allocations: 92.06 kB / 0.4951 GB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.1486, allocations: 0.5526 MB / 0.4956 GB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.1486, allocations: 29 kB / 0.4957 GB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.734e-05/0.1487, allocations: 55.89 kB / 0.4957 GB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009234/0.1497, allocations: 0.6453 MB / 0.4963 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.1497, allocations: 4 kB / 0.4964 GB, free: 3.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.178e-05/0.1497, allocations: 16 kB / 0.4964 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.1499, allocations: 48.97 kB / 0.4964 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007467/0.1506, allocations: 0.4994 MB / 0.4969 GB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003365/0.154, allocations: 2.508 MB / 0.4993 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004734/0.1545, allocations: 315.6 kB / 0.4997 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002505/0.1548, allocations: 186.5 kB / 0.4998 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.016e-05/0.1548, allocations: 7.984 kB / 0.4998 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.1548, allocations: 34.56 kB / 0.4999 GB, free: 15.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.926e-06/0.1548, allocations: 4 kB / 0.4999 GB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002388/0.1572, allocations: 1.641 MB / 0.5015 GB, free: 13.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.1573, allocations: 106.8 kB / 0.5016 GB, free: 13.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004265/0.1577, allocations: 425.8 kB / 0.502 GB, free: 12.99 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/0.1578, allocations: 33.7 kB / 0.502 GB, free: 12.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.158, allocations: 303.7 kB / 0.5023 GB, free: 12.65 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.1581, allocations: 126.2 kB / 0.5024 GB, free: 12.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.1582, allocations: 86.25 kB / 0.5025 GB, free: 12.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.1584, allocations: 366.8 kB / 0.5029 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.1587, allocations: 165 kB / 0.503 GB, free: 11.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003438/0.159, allocations: 305.7 kB / 0.5033 GB, free: 11.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006044/0.1597, allocations: 491.7 kB / 0.5038 GB, free: 11.01 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1597, allocations: 0 / 0.5038 GB, free: 11.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001251/0.1609, allocations: 0.7996 MB / 0.5046 GB, free: 10.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.161, allocations: 8 kB / 0.5046 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.161, allocations: 4 kB / 0.5046 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006167/0.1616, allocations: 213.5 kB / 0.5048 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003011/0.1619, allocations: 75.89 kB / 0.5048 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004473/0.1664, allocations: 4.242 MB / 0.509 GB, free: 5.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000291/0.1667, allocations: 16 kB / 0.509 GB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.054e-05/0.1667, allocations: 23.98 kB / 0.509 GB, free: 5.309 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.0003414/0.1671, allocations: 225.7 kB / 0.5092 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.1672, allocations: 47.44 kB / 0.5093 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009725/0.1682, allocations: 0.637 MB / 0.5099 GB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1682, allocations: 4 kB / 0.5099 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.1682, allocations: 8 kB / 0.5099 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.1682, allocations: 8.016 kB / 0.5099 GB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.17, allocations: 1.179 MB / 0.5111 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.1701, allocations: 12.05 kB / 0.5111 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004351/0.1705, allocations: 67.89 kB / 0.5112 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001549/0.1707, allocations: 57.61 kB / 0.5112 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.1707, allocations: 8 kB / 0.5112 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.1726, allocations: 2.835 MB / 0.514 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1726, allocations: 3.938 kB / 0.514 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.1737, allocations: 0.9571 MB / 0.5149 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000213/0.174, allocations: 140.5 kB / 0.5151 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.33e-05/0.174, allocations: 12 kB / 0.5151 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.1743, allocations: 11.98 kB / 0.5151 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/0.1743, allocations: 23.97 kB / 0.5151 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.1744, allocations: 15.98 kB / 0.5151 GB, free: 14.53 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003112/0.1747, allocations: 299.1 kB / 0.5154 GB, free: 14.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1747, allocations: 0 / 0.5154 GB, free: 14.24 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000599/0.1753, allocations: 128 kB / 0.5155 GB, free: 14.11 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.001354/0.1767, allocations: 1.506 MB / 0.517 GB, free: 12.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.178, allocations: 0.7511 MB / 0.5177 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.178, allocations: 0 / 0.5177 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005219/0.1785, allocations: 418.6 kB / 0.5181 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007529/0.1793, allocations: 117.8 kB / 0.5182 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007115/0.1864, allocations: 5.539 MB / 0.5236 GB, free: 5.395 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005956/0.187, allocations: 0.9405 MB / 0.5246 GB, free: 4.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003113/0.1874, allocations: 104.4 kB / 0.5247 GB, free: 4.324 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/0.1876, allocations: 203.3 kB / 0.5249 GB, free: 4.125 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1876, allocations: 0 / 0.5249 GB, free: 4.125 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2603/0.4479, allocations: 12.38 MB / 0.537 GB, free: 51.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.38, allocations: 6.188 kB / 0.537 GB, free: 51.61 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)