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.001098/0.001098, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001095/0.001095, allocations: 200 kB / 18.01 MB, free: 5.055 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.302/1.302, allocations: 205.1 MB / 223.9 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.1841/0.1841, allocations: 37.98 MB / 309.2 MB, free: 5.941 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.001497/0.001497, allocations: 64.33 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09746/0.09896, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.008738/0.1077, allocations: 7.446 MB / 494.1 MB, free: 1.363 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005065/0.1128, allocations: 3.038 MB / 497.1 MB, free: 14.31 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006654/0.1135, allocations: 27.88 kB / 497.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002289/0.1158, allocations: 0.7822 MB / 497.9 MB, free: 13.5 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.001708/0.1176, allocations: 0.6921 MB / 498.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.1186, allocations: 375.1 kB / 499 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00176/0.1204, allocations: 1.332 MB / 0.4886 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001045/0.1214, allocations: 0.7408 MB / 0.4893 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009024/0.1223, allocations: 0.5643 MB / 0.4898 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009832/0.1233, allocations: 0.6267 MB / 0.4905 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001609/0.1235, allocations: 76 kB / 0.4905 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000858/0.1244, allocations: 479.2 kB / 0.491 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004393/0.1248, allocations: 458.9 kB / 0.4914 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006166/0.1255, allocations: 0.4976 MB / 0.4919 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001542/0.127, allocations: 1.421 MB / 0.4933 GB, free: 6.234 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.127, allocations: 0 / 0.4933 GB, free: 6.234 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.127, allocations: 0 / 0.4933 GB, free: 6.234 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.64e-05/0.1271, allocations: 0 / 0.4933 GB, free: 6.234 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.002519/0.1296, allocations: 1.269 MB / 0.4945 GB, free: 4.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.1297, allocations: 15.83 kB / 0.4946 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001831/0.1299, allocations: 143.7 kB / 0.4947 GB, free: 4.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001213/0.1311, allocations: 207.5 kB / 0.4949 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001488/0.1326, allocations: 0.71 MB / 0.4956 GB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.839e-05/0.1326, allocations: 70.09 kB / 0.4956 GB, free: 3.727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002215/0.1329, allocations: 88 kB / 0.4957 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.1345, allocations: 1.119 MB / 0.4968 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.771e-05/0.1345, allocations: 0 / 0.4968 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.636e-05/0.1346, allocations: 32 kB / 0.4969 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001602/0.1347, allocations: 73.95 kB / 0.4969 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.1361, allocations: 0.8899 MB / 0.4978 GB, free: 1.484 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.00515/0.1413, allocations: 4.054 MB / 0.5018 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005922/0.1419, allocations: 418 kB / 0.5022 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003589/0.1423, allocations: 277.5 kB / 0.5024 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.644e-05/0.1423, allocations: 11.88 kB / 0.5024 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.1423, allocations: 42.56 kB / 0.5025 GB, free: 12.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.933e-06/0.1423, allocations: 0 / 0.5025 GB, free: 12.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004064/0.1464, allocations: 1.982 MB / 0.5044 GB, free: 10.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.1465, allocations: 85.55 kB / 0.5045 GB, free: 10.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006075/0.1471, allocations: 0.5731 MB / 0.505 GB, free: 9.711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.1471, allocations: 33.7 kB / 0.5051 GB, free: 9.672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002696/0.1474, allocations: 470.4 kB / 0.5055 GB, free: 9.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.1476, allocations: 193.3 kB / 0.5057 GB, free: 9.012 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.1478, allocations: 142.5 kB / 0.5058 GB, free: 8.863 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.1479, allocations: 386.7 kB / 0.5062 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004063/0.1483, allocations: 269.8 kB / 0.5065 GB, free: 8.215 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005426/0.1489, allocations: 0.5003 MB / 0.507 GB, free: 7.613 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.003092/0.152, allocations: 1.408 MB / 0.5083 GB, free: 6.102 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.152, allocations: 0 / 0.5083 GB, free: 6.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001867/0.1539, allocations: 1.091 MB / 0.5094 GB, free: 4.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.1539, allocations: 15.98 kB / 0.5094 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0012/0.1551, allocations: 0.7563 MB / 0.5102 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005001/0.1556, allocations: 154.4 kB / 0.5103 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006113/0.1563, allocations: 175.7 kB / 0.5105 GB, free: 3.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004073/0.1604, allocations: 4.856 MB / 0.5152 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006578/0.161, allocations: 40.03 kB / 0.5153 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.882e-05/0.1612, allocations: 39.98 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.0006831/0.1618, allocations: 309.5 kB / 0.5156 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001867/0.162, allocations: 71.09 kB / 0.5157 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001133/0.1632, allocations: 0.6472 MB / 0.5163 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.1632, allocations: 8 kB / 0.5163 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1632, allocations: 4 kB / 0.5163 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.1632, allocations: 3.984 kB / 0.5163 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002862/0.1661, allocations: 1.514 MB / 0.5178 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.1661, allocations: 4 kB / 0.5178 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005997/0.1667, allocations: 119.9 kB / 0.5179 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.1667, allocations: 4 kB / 0.5179 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.609e-05/0.1668, allocations: 19.98 kB / 0.5179 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.097e-05/0.1668, allocations: 7.938 kB / 0.5179 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.1668, allocations: 8.125 kB / 0.5179 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001214/0.168, allocations: 0.9484 MB / 0.5189 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003141/0.1684, allocations: 180.4 kB / 0.519 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.454e-05/0.1685, allocations: 19.84 kB / 0.5191 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003453/0.1688, allocations: 27.97 kB / 0.5191 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.783e-05/0.1689, allocations: 36.28 kB / 0.5191 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.1689, allocations: 19.98 kB / 0.5191 GB, free: 10.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004308/0.1694, allocations: 407 kB / 0.5195 GB, free: 10 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1694, allocations: 8 kB / 0.5195 GB, free: 9.992 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008135/0.1702, allocations: 228 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.001626/0.1718, allocations: 1.523 MB / 0.5212 GB, free: 8.195 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.1735, allocations: 1.023 MB / 0.5222 GB, free: 7.133 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.1735, allocations: 320 / 0.5222 GB, free: 7.133 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003941/0.1739, allocations: 270.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.000795/0.1747, allocations: 151.4 kB / 0.5226 GB, free: 6.723 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2042/0.3789, allocations: 7.12 MB / 0.5296 GB, free: 49.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006406/0.3795, allocations: 1.085 MB / 0.5306 GB, free: 49.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006354/0.3802, allocations: 196.4 kB / 0.5308 GB, free: 49.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003831/0.3806, allocations: 327.7 kB / 0.5311 GB, free: 49.12 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3806, allocations: 0 / 0.5311 GB, free: 49.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06805/0.4487, allocations: 16.23 MB / 0.547 GB, free: 44.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.65, allocations: 11.88 kB / 0.547 GB, free: 44.52 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)