Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",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.00179/0.00179, allocations: 107.9 kB / 16.92 MB, free: 5.707 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.001885/0.001885, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.331/1.331, allocations: 222.9 MB / 241.5 MB, free: 15.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1735/0.1735, allocations: 38.02 MB / 329.7 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 65.16 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08749/0.0888, allocations: 58.07 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01081/0.09966, allocations: 9.242 MB / 466.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005273/0.105, allocations: 3.252 MB / 469.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.1062, allocations: 43.75 kB / 469.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001741/0.1079, allocations: 413.3 kB / 469.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002081/0.11, allocations: 0.8006 MB / 470.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0012/0.1112, allocations: 475.2 kB / 471.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00267/0.1139, allocations: 1.867 MB / 473 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001781/0.1157, allocations: 1.112 MB / 474.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001405/0.1171, allocations: 0.751 MB / 474.9 MB, free: 5.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001514/0.1187, allocations: 0.8133 MB / 475.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003598/0.119, allocations: 136 kB / 475.8 MB, free: 5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008278/0.1199, allocations: 387.5 kB / 476.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005848/0.1205, allocations: 494.8 kB / 476.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001128/0.1216, allocations: 0.7076 MB / 477.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001931/0.1235, allocations: 1.951 MB / 479.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1236, allocations: 0 / 479.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1236, allocations: 0 / 479.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.337e-05/0.1236, allocations: 0 / 479.4 MB, free: 1.469 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.003773/0.1274, allocations: 1.655 MB / 481 MB, free: 15.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.1275, allocations: 11.89 kB / 481 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002343/0.1277, allocations: 165 kB / 481.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007343/0.1285, allocations: 187.2 kB / 481.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.13, allocations: 0.9108 MB / 482.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.396e-05/0.1301, allocations: 86.05 kB / 482.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002723/0.1303, allocations: 115.9 kB / 482.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.1323, allocations: 1.349 MB / 483.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.1323, allocations: 7.984 kB / 483.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.1324, allocations: 44 kB / 483.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.952e-05/0.1325, allocations: 65.97 kB / 483.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001749/0.1343, allocations: 1.07 MB / 485 MB, free: 11.62 MB / 366.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006351/0.1407, allocations: 5.133 MB / 490.2 MB, free: 6.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.1418, allocations: 0.7531 MB / 490.9 MB, free: 5.453 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005173/0.1424, allocations: 347.1 kB / 491.2 MB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.032e-05/0.1424, allocations: 12.55 kB / 491.3 MB, free: 5.094 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.1425, allocations: 39.12 kB / 491.3 MB, free: 5.047 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.475e-06/0.1425, allocations: 0 / 491.3 MB, free: 5.047 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.005467/0.1479, allocations: 2.678 MB / 494 MB, free: 2.281 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.822e-05/0.148, allocations: 145 kB / 494.1 MB, free: 2.105 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009059/0.149, allocations: 0.7471 MB / 494.9 MB, free: 1.352 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.049e-05/0.149, allocations: 37.7 kB / 494.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003667/0.1494, allocations: 0.561 MB / 495.5 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.1496, allocations: 256.4 kB / 495.7 MB, free: 496 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.1498, allocations: 162.6 kB / 495.9 MB, free: 328 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1499, allocations: 342 kB / 496.2 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005059/0.1505, allocations: 300.7 kB / 496.5 MB, free: 15.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006521/0.1511, allocations: 0.549 MB / 497 MB, free: 15.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.1524, allocations: 0.8974 MB / 497.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.1524, allocations: 8 kB / 497.9 MB, free: 14.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002781/0.1552, allocations: 1.344 MB / 499.3 MB, free: 12.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.1552, allocations: 8 kB / 499.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.1552, allocations: 12.25 kB / 499.3 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.1566, allocations: 420.5 kB / 499.7 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006411/0.1573, allocations: 171.7 kB / 499.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008141/0.1654, allocations: 5.29 MB / 0.4933 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006504/0.1661, allocations: 35.98 kB / 0.4934 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.767e-05/0.1662, allocations: 43.97 kB / 0.4934 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008824/0.167, allocations: 0.5565 MB / 0.494 GB, free: 5.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005909/0.1676, allocations: 0.5373 MB / 0.4945 GB, free: 5.328 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001134/0.1688, allocations: 0.8741 MB / 0.4953 GB, free: 4.344 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.731e-06/0.1688, allocations: 0 / 0.4953 GB, free: 4.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002519/0.1713, allocations: 1.27 MB / 0.4966 GB, free: 3.062 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.1714, allocations: 8 kB / 0.4966 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.1714, allocations: 8 kB / 0.4966 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.1726, allocations: 405.3 kB / 0.497 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000625/0.1733, allocations: 171.7 kB / 0.4971 GB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007191/0.1805, allocations: 5.062 MB / 0.5021 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006603/0.1812, allocations: 35.89 kB / 0.5021 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-05/0.1812, allocations: 43.98 kB / 0.5022 GB, free: 13.2 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002263/0.1815, allocations: 232.8 kB / 0.5024 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.1817, allocations: 94.81 kB / 0.5025 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001456/0.1831, allocations: 0.8675 MB / 0.5033 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.1832, allocations: 8 kB / 0.5033 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1832, allocations: 0 / 0.5033 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.1832, allocations: 3.984 kB / 0.5033 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/0.1862, allocations: 1.865 MB / 0.5052 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1863, allocations: 0 / 0.5052 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008376/0.1871, allocations: 167.8 kB / 0.5053 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.135e-06/0.1871, allocations: 4 kB / 0.5053 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.671e-05/0.1872, allocations: 23.92 kB / 0.5053 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.1872, allocations: 8.031 kB / 0.5054 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1872, allocations: 0 / 0.5054 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/0.189, allocations: 1.262 MB / 0.5066 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003357/0.1893, allocations: 239.7 kB / 0.5068 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.1895, allocations: 16 kB / 0.5068 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004862/0.19, allocations: 27.97 kB / 0.5069 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.805e-05/0.1901, allocations: 44.59 kB / 0.5069 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.873e-05/0.1901, allocations: 16 kB / 0.5069 GB, free: 8.191 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006282/0.1908, allocations: 0.5068 MB / 0.5074 GB, free: 7.688 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1908, allocations: 0 / 0.5074 GB, free: 7.688 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001467/0.1922, allocations: 472 kB / 0.5079 GB, free: 7.227 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * 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 (77): * Single equations (assignments): 76 * 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.002151/0.1944, allocations: 1.861 MB / 0.5097 GB, free: 5.332 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003829/0.1982, allocations: 2.056 MB / 0.5117 GB, free: 3.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1983, allocations: 0 / 0.5117 GB, free: 3.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005374/0.1988, allocations: 355.5 kB / 0.512 GB, free: 2.906 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.2, allocations: 259.4 kB / 0.5123 GB, free: 2.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.184/0.384, allocations: 9.446 MB / 0.5215 GB, free: 66.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.3851, allocations: 1.208 MB / 0.5227 GB, free: 65.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000997/0.3861, allocations: 245 kB / 0.5229 GB, free: 65.58 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005055/0.3866, allocations: 437.1 kB / 0.5233 GB, free: 65.24 MB / 398.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3866, allocations: 1.125 kB / 0.5233 GB, free: 65.24 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07677/0.4634, allocations: 27.24 MB / 0.5499 GB, free: 50.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.05, allocations: 7.922 kB / 0.5499 GB, free: 50.03 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)