Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.Generation.PowerAngle,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle",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.001161/0.001162, allocations: 105.6 kB / 17.06 MB, free: 6.117 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.001128/0.001128, allocations: 195 kB / 18 MB, free: 5.191 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.343/1.343, 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.1771/0.1771, allocations: 37.98 MB / 309.2 MB, free: 5.965 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.00158/0.00158, allocations: 63.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1026, allocations: 55.24 MB / 486.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.008718/0.1114, allocations: 7.443 MB / 494.1 MB, free: 1.359 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004942/0.1164, allocations: 3.03 MB / 497.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006664/0.1171, allocations: 27.88 kB / 497.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002205/0.1193, allocations: 0.7745 MB / 497.9 MB, free: 13.51 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.001899/0.1213, allocations: 0.6882 MB / 498.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.1223, allocations: 387.1 kB / 499 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001852/0.1242, allocations: 1.324 MB / 0.4886 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.1252, allocations: 0.7447 MB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.1263, allocations: 0.5604 MB / 0.4898 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001207/0.1276, allocations: 0.6306 MB / 0.4904 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002113/0.1278, allocations: 76 kB / 0.4905 GB, free: 9.086 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001073/0.1289, allocations: 475.1 kB / 0.491 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005658/0.1294, allocations: 462.9 kB / 0.4914 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.1305, allocations: 0.5015 MB / 0.4919 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002283/0.1328, allocations: 1.418 MB / 0.4933 GB, free: 6.242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1328, allocations: 0 / 0.4933 GB, free: 6.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1328, allocations: 4 kB / 0.4933 GB, free: 6.238 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.66e-05/0.1329, allocations: 0 / 0.4933 GB, free: 6.238 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002978/0.1359, allocations: 1.266 MB / 0.4945 GB, free: 4.918 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.1359, allocations: 19.89 kB / 0.4945 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002549/0.1362, allocations: 143.7 kB / 0.4947 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.1376, allocations: 199.5 kB / 0.4949 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001552/0.1391, allocations: 0.7139 MB / 0.4956 GB, free: 3.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.857e-05/0.1392, allocations: 66.11 kB / 0.4956 GB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003328/0.1395, allocations: 95.97 kB / 0.4957 GB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002098/0.1417, allocations: 1.115 MB / 0.4968 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.791e-05/0.1417, allocations: 0 / 0.4968 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.841e-05/0.1418, allocations: 35.98 kB / 0.4969 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001877/0.142, allocations: 73.89 kB / 0.4969 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001814/0.1438, allocations: 0.8977 MB / 0.4978 GB, free: 1.48 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.006544/0.1504, allocations: 4.047 MB / 0.5018 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006833/0.1511, allocations: 425.9 kB / 0.5022 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003989/0.1515, allocations: 269.6 kB / 0.5024 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.271e-05/0.1516, allocations: 8 kB / 0.5024 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.1516, allocations: 42.5 kB / 0.5025 GB, free: 12.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.916e-06/0.1516, allocations: 0 / 0.5025 GB, free: 12.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004821/0.1565, allocations: 1.986 MB / 0.5044 GB, free: 10.4 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.1565, allocations: 89.53 kB / 0.5045 GB, free: 10.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008722/0.1574, allocations: 0.5692 MB / 0.505 GB, free: 9.715 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.087e-05/0.1575, allocations: 29.7 kB / 0.5051 GB, free: 9.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003317/0.1578, allocations: 478.4 kB / 0.5055 GB, free: 9.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.1581, allocations: 185.3 kB / 0.5057 GB, free: 9.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/0.1583, allocations: 146.5 kB / 0.5058 GB, free: 8.867 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.1585, allocations: 386.7 kB / 0.5062 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005009/0.159, allocations: 273.8 kB / 0.5065 GB, free: 8.215 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005356/0.1595, allocations: 0.4964 MB / 0.507 GB, free: 7.617 MB / 398.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.003311/0.1628, allocations: 1.408 MB / 0.5083 GB, free: 6.105 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.1629, allocations: 0 / 0.5083 GB, free: 6.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002049/0.1649, allocations: 1.099 MB / 0.5094 GB, free: 4.969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.165, allocations: 8 kB / 0.5094 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001149/0.1661, allocations: 0.7602 MB / 0.5102 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006066/0.1667, allocations: 158.5 kB / 0.5103 GB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006093/0.1674, allocations: 171.7 kB / 0.5105 GB, free: 3.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004589/0.172, allocations: 4.86 MB / 0.5152 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008193/0.1728, allocations: 39.97 kB / 0.5153 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.1729, allocations: 32 kB / 0.5153 GB, free: 14.49 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006559/0.1736, allocations: 321.5 kB / 0.5156 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002281/0.1739, allocations: 67.09 kB / 0.5157 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00115/0.175, allocations: 0.6473 MB / 0.5163 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.175, allocations: 8 kB / 0.5163 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.1751, allocations: 0 / 0.5163 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1751, allocations: 0 / 0.5163 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.1779, allocations: 1.514 MB / 0.5178 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.1779, allocations: 4 kB / 0.5178 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006276/0.1785, allocations: 123.9 kB / 0.5179 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/0.1786, allocations: 7.938 kB / 0.5179 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.368e-05/0.1786, allocations: 16 kB / 0.5179 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.256e-05/0.1786, allocations: 7.984 kB / 0.5179 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/0.1786, allocations: 12.06 kB / 0.5179 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.1798, allocations: 0.9485 MB / 0.5189 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002955/0.1801, allocations: 180.3 kB / 0.519 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.1803, allocations: 27.83 kB / 0.5191 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003598/0.1806, allocations: 15.98 kB / 0.5191 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.09e-05/0.1807, allocations: 36.33 kB / 0.5191 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.106e-05/0.1807, allocations: 16 kB / 0.5191 GB, free: 10.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005817/0.1813, allocations: 411 kB / 0.5195 GB, free: 10 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1813, allocations: 4 kB / 0.5195 GB, free: 9.996 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009452/0.1823, allocations: 232 kB / 0.5197 GB, free: 9.77 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * 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 (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001854/0.1842, allocations: 1.52 MB / 0.5212 GB, free: 8.199 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001774/0.186, allocations: 1.031 MB / 0.5222 GB, free: 7.129 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.186, allocations: 448 / 0.5222 GB, free: 7.129 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004001/0.1864, allocations: 266.3 kB / 0.5225 GB, free: 6.871 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009418/0.1873, allocations: 159.4 kB / 0.5226 GB, free: 6.715 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2146/0.402, allocations: 7.11 MB / 0.5296 GB, free: 49.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006511/0.4027, allocations: 1.081 MB / 0.5306 GB, free: 49.22 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005957/0.4033, allocations: 202.2 kB / 0.5308 GB, free: 49.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000402/0.4037, allocations: 330 kB / 0.5311 GB, free: 49.21 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4037, allocations: 0 / 0.5311 GB, free: 49.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04778/0.4515, allocations: 16.23 MB / 0.547 GB, free: 44.69 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.84, allocations: 15.84 kB / 0.547 GB, free: 44.68 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)