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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.00131/0.00131, allocations: 107.1 kB / 16.92 MB, free: 5.777 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.001363/0.001363, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1788/0.1788, allocations: 38.03 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001585, allocations: 62.95 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09372, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.01103/0.1048, allocations: 7.438 MB / 464.4 MB, free: 492 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004789/0.1096, allocations: 2.988 MB / 467.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005064/0.1102, allocations: 27.81 kB / 467.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002029/0.1122, allocations: 0.774 MB / 468.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001642/0.1139, allocations: 0.696 MB / 468.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009067/0.1148, allocations: 378.4 kB / 469.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001601/0.1164, allocations: 1.325 MB / 470.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009494/0.1174, allocations: 0.7602 MB / 471.3 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007899/0.1182, allocations: 0.5449 MB / 471.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009384/0.1191, allocations: 0.6229 MB / 472.5 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001651/0.1193, allocations: 76 kB / 472.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008523/0.1202, allocations: 479.1 kB / 473 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004282/0.1206, allocations: 454.9 kB / 473.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000588/0.1212, allocations: 0.5015 MB / 474 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0014/0.1226, allocations: 1.406 MB / 475.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1226, allocations: 0 / 475.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1226, allocations: 0 / 475.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.676e-05/0.1227, allocations: 4 kB / 475.4 MB, free: 5.438 MB / 350.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.002202/0.1249, allocations: 1.262 MB / 476.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.1249, allocations: 15.89 kB / 476.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001622/0.1251, allocations: 139.7 kB / 476.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00125/0.1263, allocations: 207.6 kB / 477 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.1276, allocations: 0.6787 MB / 477.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.989e-05/0.1277, allocations: 66.11 kB / 477.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002213/0.1279, allocations: 91.98 kB / 477.9 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.1295, allocations: 1.127 MB / 479 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/0.1296, allocations: 4 kB / 479 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.51e-05/0.1296, allocations: 31.94 kB / 479 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001676/0.1298, allocations: 69.97 kB / 479.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.1312, allocations: 0.8938 MB / 480 MB, free: 0.7188 MB / 350.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.005012/0.1362, allocations: 4.085 MB / 484.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006045/0.1368, allocations: 418 kB / 484.5 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003527/0.1372, allocations: 269.6 kB / 484.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.1372, allocations: 4 kB / 484.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.1373, allocations: 38.56 kB / 484.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 1.944e-06/0.1373, allocations: 3.938 kB / 484.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.004137/0.1414, allocations: 1.988 MB / 486.8 MB, free: 9.605 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.1415, allocations: 81.55 kB / 486.8 MB, free: 9.508 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006746/0.1422, allocations: 0.5656 MB / 487.4 MB, free: 8.934 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.349e-05/0.1422, allocations: 37.7 kB / 487.5 MB, free: 8.891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003171/0.1426, allocations: 478.3 kB / 487.9 MB, free: 8.414 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.1427, allocations: 181.4 kB / 488.1 MB, free: 8.234 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/0.1429, allocations: 150.5 kB / 488.2 MB, free: 8.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1431, allocations: 382.7 kB / 488.6 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004054/0.1435, allocations: 265.8 kB / 488.9 MB, free: 7.438 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005402/0.1441, allocations: 0.5082 MB / 489.4 MB, free: 6.824 MB / 366.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.002977/0.147, allocations: 1.411 MB / 490.8 MB, free: 5.312 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.1471, allocations: 4 kB / 490.8 MB, free: 5.309 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001799/0.1489, allocations: 1.098 MB / 491.9 MB, free: 4.176 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.1489, allocations: 10.5 kB / 491.9 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001181/0.1501, allocations: 0.761 MB / 492.7 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005037/0.1506, allocations: 166.4 kB / 492.8 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006036/0.1512, allocations: 175.7 kB / 493 MB, free: 3.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003943/0.1552, allocations: 4.857 MB / 497.9 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005061/0.1557, allocations: 39.97 kB / 497.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.949e-05/0.1558, allocations: 35.98 kB / 497.9 MB, free: 13.68 MB / 382.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.0004613/0.1562, allocations: 315.7 kB / 498.2 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.1564, allocations: 75.08 kB / 498.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.1574, allocations: 0.6396 MB / 499 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.1575, allocations: 4 kB / 499 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.1575, allocations: 4 kB / 499 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.1575, allocations: 7.922 kB / 499 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002458/0.1599, allocations: 1.506 MB / 0.4887 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.16, allocations: 7.938 kB / 0.4888 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006125/0.1606, allocations: 127.8 kB / 0.4889 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.1606, allocations: 4.188 kB / 0.4889 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-05/0.1607, allocations: 19.98 kB / 0.4889 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.1607, allocations: 4 kB / 0.4889 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.1607, allocations: 7.938 kB / 0.4889 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.1619, allocations: 0.9473 MB / 0.4898 GB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002564/0.1622, allocations: 180.4 kB / 0.49 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.1623, allocations: 15.91 kB / 0.49 GB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003487/0.1627, allocations: 19.98 kB / 0.49 GB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.328e-05/0.1627, allocations: 44.27 kB / 0.4901 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.882e-05/0.1628, allocations: 16 kB / 0.4901 GB, free: 9.602 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004678/0.1633, allocations: 411 kB / 0.4905 GB, free: 9.199 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.1633, allocations: 0 / 0.4905 GB, free: 9.199 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008565/0.1641, allocations: 239.9 kB / 0.4907 GB, free: 8.965 MB / 382.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.001618/0.1658, allocations: 1.523 MB / 0.4922 GB, free: 7.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001884/0.1677, allocations: 1.148 MB / 0.4933 GB, free: 6.207 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.1677, allocations: 0 / 0.4933 GB, free: 6.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003631/0.168, allocations: 270.2 kB / 0.4936 GB, free: 5.945 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008156/0.1689, allocations: 140.8 kB / 0.4937 GB, free: 5.805 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009558/0.1784, allocations: 7.318 MB / 0.5009 GB, free: 14.1 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006666/0.1791, allocations: 1.078 MB / 0.5019 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005614/0.1797, allocations: 201.8 kB / 0.5021 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004311/0.1801, allocations: 327.3 kB / 0.5024 GB, free: 12.47 MB / 398.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1802, allocations: 0 / 0.5024 GB, free: 12.47 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2049/0.3851, allocations: 15.7 MB / 0.5178 GB, free: 70.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.237/9.622, allocations: 3.609 kB / 0.5178 GB, free: 70.64 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)