Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_latest_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.001207/0.001207, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001402/0.001402, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.33/1.33, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.178/0.178, allocations: 38.04 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 58.34 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08695/0.08825, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.008689/0.09698, allocations: 7.438 MB / 464.4 MB, free: 500 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004571/0.1016, allocations: 2.995 MB / 467.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000481/0.1021, allocations: 23.88 kB / 467.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001977/0.1041, allocations: 0.7718 MB / 468.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001569/0.1057, allocations: 0.696 MB / 468.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008739/0.1066, allocations: 375.2 kB / 469.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001641/0.1082, allocations: 1.325 MB / 470.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.1093, allocations: 0.7525 MB / 471.3 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000829/0.1101, allocations: 0.5487 MB / 471.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009499/0.1111, allocations: 0.6268 MB / 472.5 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001696/0.1113, allocations: 79.94 kB / 472.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008346/0.1121, allocations: 471.2 kB / 473.1 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004632/0.1126, allocations: 462.8 kB / 473.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006834/0.1133, allocations: 0.5054 MB / 474 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001519/0.1148, allocations: 1.406 MB / 475.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1148, allocations: 0 / 475.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1148, allocations: 0 / 475.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.016e-05/0.1149, allocations: 0 / 475.4 MB, free: 5.441 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.002337/0.1172, allocations: 1.27 MB / 476.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.1172, allocations: 11.89 kB / 476.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000182/0.1174, allocations: 139.7 kB / 476.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001287/0.1187, allocations: 199.6 kB / 477 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.12, allocations: 0.6865 MB / 477.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.011e-05/0.1201, allocations: 70.11 kB / 477.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002231/0.1203, allocations: 91.98 kB / 477.9 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.1219, allocations: 1.107 MB / 479 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.818e-05/0.122, allocations: 7.938 kB / 479 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.599e-05/0.122, allocations: 35.98 kB / 479 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001766/0.1222, allocations: 73.95 kB / 479.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.1236, allocations: 0.886 MB / 480 MB, free: 0.7305 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.005193/0.1288, allocations: 4.082 MB / 484.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005809/0.1294, allocations: 422 kB / 484.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003591/0.1298, allocations: 272.5 kB / 484.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.1299, allocations: 7.984 kB / 484.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.1299, allocations: 38.56 kB / 484.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 2.114e-06/0.1299, allocations: 4 kB / 484.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.00416/0.1341, allocations: 1.984 MB / 486.8 MB, free: 9.617 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.279e-05/0.1342, allocations: 89.58 kB / 486.9 MB, free: 9.512 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006156/0.1348, allocations: 0.5616 MB / 487.4 MB, free: 8.941 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.732e-05/0.1348, allocations: 33.7 kB / 487.5 MB, free: 8.902 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003004/0.1351, allocations: 474.3 kB / 487.9 MB, free: 8.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001481/0.1353, allocations: 189.4 kB / 488.1 MB, free: 8.242 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002061/0.1355, allocations: 146.5 kB / 488.2 MB, free: 8.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1357, allocations: 378.7 kB / 488.6 MB, free: 7.711 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004256/0.1361, allocations: 277.8 kB / 488.9 MB, free: 7.441 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005765/0.1367, allocations: 0.5003 MB / 489.4 MB, free: 6.836 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.003202/0.1399, allocations: 1.412 MB / 490.8 MB, free: 5.324 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.1399, allocations: 4 kB / 490.8 MB, free: 5.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001962/0.1419, allocations: 1.099 MB / 491.9 MB, free: 4.184 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.1419, allocations: 18 kB / 491.9 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001291/0.1432, allocations: 0.749 MB / 492.7 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005213/0.1438, allocations: 170.4 kB / 492.8 MB, free: 3.215 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000614/0.1444, allocations: 171.8 kB / 493 MB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004465/0.1489, allocations: 4.853 MB / 497.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006182/0.1495, allocations: 39.97 kB / 497.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.568e-05/0.1496, allocations: 35.98 kB / 497.9 MB, free: 13.7 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.0005843/0.1502, allocations: 323.8 kB / 498.2 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.1503, allocations: 71.16 kB / 498.3 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001095/0.1514, allocations: 0.6358 MB / 499 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.1514, allocations: 8 kB / 499 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.1514, allocations: 0 / 499 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.1515, allocations: 3.984 kB / 499 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002526/0.154, allocations: 1.518 MB / 0.4888 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.154, allocations: 8 kB / 0.4888 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006224/0.1546, allocations: 128 kB / 0.4889 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/0.1547, allocations: 4 kB / 0.4889 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.056e-05/0.1547, allocations: 19.98 kB / 0.4889 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.1547, allocations: 4 kB / 0.4889 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1547, allocations: 3.938 kB / 0.4889 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.156, allocations: 0.9512 MB / 0.4898 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002573/0.1562, allocations: 180.4 kB / 0.49 GB, free: 9.703 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.814e-05/0.1563, allocations: 15.91 kB / 0.49 GB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003355/0.1567, allocations: 23.97 kB / 0.4901 GB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.564e-05/0.1567, allocations: 40.28 kB / 0.4901 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.365e-05/0.1568, allocations: 19.98 kB / 0.4901 GB, free: 9.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004501/0.1572, allocations: 411 kB / 0.4905 GB, free: 9.203 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1573, allocations: 0 / 0.4905 GB, free: 9.203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007729/0.158, allocations: 228 kB / 0.4907 GB, free: 8.98 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.001674/0.1597, allocations: 1.535 MB / 0.4922 GB, free: 7.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.1615, allocations: 1.147 MB / 0.4933 GB, free: 6.211 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1615, allocations: 0 / 0.4933 GB, free: 6.211 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003729/0.1619, allocations: 271.8 kB / 0.4936 GB, free: 5.949 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007964/0.1627, allocations: 141.9 kB / 0.4937 GB, free: 5.809 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009768/0.1725, allocations: 7.309 MB / 0.5009 GB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008069/0.1733, allocations: 1.086 MB / 0.5019 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006319/0.174, allocations: 201.8 kB / 0.5021 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004912/0.1745, allocations: 323.3 kB / 0.5024 GB, free: 12.48 MB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1745, allocations: 0 / 0.5024 GB, free: 12.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2058/0.3803, allocations: 15.71 MB / 0.5178 GB, free: 70.69 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.391/9.772, allocations: 3.984 kB / 0.5178 GB, free: 70.69 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)