Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Display.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.Introductory.Display,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Display",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Display,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Display",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.001109/0.001109, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001012/0.001012, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.49/1.49, 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.1768/0.1768, allocations: 38.03 MB / 329.7 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 62.03 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1019, allocations: 58.06 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Display): time 0.01076/0.1127, allocations: 6.639 MB / 463.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004665/0.1174, allocations: 2.025 MB / 465.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004102/0.1178, allocations: 23.88 kB / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002335/0.1202, allocations: 0.7158 MB / 466.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001878/0.1221, allocations: 0.5678 MB / 466.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008686/0.123, allocations: 251.4 kB / 467.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001603/0.1246, allocations: 1.137 MB / 468.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001142/0.1257, allocations: 0.599 MB / 468.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008348/0.1266, allocations: 0.5135 MB / 469.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008603/0.1275, allocations: 0.6073 MB / 470 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001657/0.1276, allocations: 72 kB / 470.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005339/0.1282, allocations: 267.7 kB / 470.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004293/0.1286, allocations: 486.8 kB / 470.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004847/0.1291, allocations: 497.5 kB / 471.3 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001045/0.1302, allocations: 1.16 MB / 472.5 MB, free: 8.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1302, allocations: 0 / 472.5 MB, free: 8.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1302, allocations: 4 kB / 472.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1302, allocations: 0 / 472.5 MB, free: 8.367 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: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.002022/0.1322, allocations: 1.204 MB / 473.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.1323, allocations: 11.89 kB / 473.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001598/0.1324, allocations: 147.9 kB / 473.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009644/0.1334, allocations: 167.5 kB / 474 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009683/0.1344, allocations: 0.5851 MB / 474.6 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.824e-05/0.1345, allocations: 66.36 kB / 474.7 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002091/0.1347, allocations: 103.8 kB / 474.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/0.1363, allocations: 1.157 MB / 475.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.1363, allocations: 4 kB / 475.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.84e-05/0.1364, allocations: 32 kB / 476 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001717/0.1366, allocations: 89.83 kB / 476 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.1383, allocations: 0.9952 MB / 477 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00528/0.1436, allocations: 4.37 MB / 481.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.1448, allocations: 0.6411 MB / 482 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004876/0.1453, allocations: 305.8 kB / 482.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.855e-05/0.1454, allocations: 8.562 kB / 482.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.1454, allocations: 39.12 kB / 482.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 2.535e-06/0.1454, allocations: 0 / 482.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.002851/0.1483, allocations: 1.742 MB / 484.1 MB, free: 12.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.1484, allocations: 85.66 kB / 484.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006007/0.149, allocations: 0.5493 MB / 484.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.149, allocations: 33.7 kB / 484.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002895/0.1493, allocations: 434.8 kB / 485.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/0.1495, allocations: 228.9 kB / 485.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.1497, allocations: 186.6 kB / 485.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.1499, allocations: 382.8 kB / 486 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004671/0.1504, allocations: 281.8 kB / 486.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007029/0.1511, allocations: 0.6075 MB / 486.9 MB, free: 9.277 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.1523, allocations: 0.973 MB / 487.9 MB, free: 8.156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.1523, allocations: 4 kB / 487.9 MB, free: 8.152 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002129/0.1545, allocations: 1.176 MB / 489 MB, free: 6.957 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.1545, allocations: 8 kB / 489 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001344/0.1559, allocations: 0.7144 MB / 489.8 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007219/0.1566, allocations: 222.8 kB / 490 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007678/0.1574, allocations: 219.7 kB / 490.2 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004899/0.1623, allocations: 5.365 MB / 495.6 MB, free: 0 / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005341/0.1628, allocations: 32.14 kB / 495.6 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.39e-05/0.1629, allocations: 48.06 kB / 495.6 MB, free: 15.92 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 33 (system.initime,phasor_cap.color_n[3],phasor_cap.color_n[1],phasor_cap.color_p[3],phasor_cap.color_p[1],phasor_ind.color_n[3],phasor_ind.color_n[1],phasor_ind.color_p[3],phasor_ind.color_p[1],phasor_cap.color2[3],phasor_cap.color2[2],phasor_cap.color2[1],phasor_cap.color1[3],phasor_cap.color1[2],phasor_cap.color1[1],phasor_cap.colorR[3],phasor_cap.colorR[2],phasor_cap.colorR[1],phasor_cap.colorL[3],phasor_cap.colorL[2],phasor_cap.colorL[1],phasor_ind.color2[3],phasor_ind.color2[2],phasor_ind.color2[1],phasor_ind.color1[3],phasor_ind.color1[2],phasor_ind.color1[1],phasor_ind.colorR[3],phasor_ind.colorR[2],phasor_ind.colorR[1],phasor_ind.colorL[3],phasor_ind.colorL[2],phasor_ind.colorL[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 104 * 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%), (2,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004701/0.1634, allocations: 349.5 kB / 496 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.1635, allocations: 71.09 kB / 496 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/0.1646, allocations: 0.6539 MB / 496.7 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.1646, allocations: 11.94 kB / 496.7 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.1646, allocations: 0 / 496.7 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.1647, allocations: 3.984 kB / 496.7 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002476/0.1671, allocations: 1.535 MB / 498.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.1672, allocations: 0 / 498.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007809/0.1679, allocations: 179.7 kB / 498.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.534e-05/0.168, allocations: 4 kB / 498.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.494e-05/0.168, allocations: 19.94 kB / 498.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.168, allocations: 4.156 kB / 498.5 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.168, allocations: 4 kB / 498.5 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.1695, allocations: 1.033 MB / 499.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002307/0.1697, allocations: 172.5 kB / 499.7 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.367e-05/0.1698, allocations: 27.92 kB / 499.7 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/0.1701, allocations: 16 kB / 499.7 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.1703, allocations: 48.44 kB / 499.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.201e-05/0.1703, allocations: 23.98 kB / 499.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003952/0.1707, allocations: 354.8 kB / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1707, allocations: 0 / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008335/0.1715, allocations: 224 kB / 0.4886 GB, free: 11.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (ind.i[1],ind.i[2],ind.i[3],cap.v[1],cap.v[2],cap.v[3]) * Number of discrete variables: 9 (system.initime,phasor_ind.color_p[1],phasor_ind.color_p[3],phasor_ind.color_n[1],phasor_ind.color_n[3],phasor_cap.color_p[1],phasor_cap.color_p[3],phasor_cap.color_n[1],phasor_cap.color_n[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 66 * 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.001845/0.1734, allocations: 1.591 MB / 0.4902 GB, free: 9.441 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002354/0.1758, allocations: 1.288 MB / 0.4914 GB, free: 8.117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.1758, allocations: 0 / 0.4914 GB, free: 8.117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004925/0.1763, allocations: 319.3 kB / 0.4917 GB, free: 7.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008896/0.1772, allocations: 153.5 kB / 0.4919 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.1883, allocations: 7.278 MB / 0.499 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008145/0.1891, allocations: 1.075 MB / 0.5 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006685/0.1898, allocations: 229.5 kB / 0.5002 GB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004328/0.1903, allocations: 303.3 kB / 0.5005 GB, free: 14.3 MB / 398.1 MB Notification: Performance of SimCode: time 1.382e-06/0.1903, allocations: 0 / 0.5005 GB, free: 14.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2089/0.3992, allocations: 15.19 MB / 0.5154 GB, free: 68.9 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.536/9.935, allocations: 5.031 kB / 0.5154 GB, free: 68.9 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Display.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Display.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Display.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Display.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.Display_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerSystems_PowerSystems_Examples_Introductory_Display.fmu > PowerSystems_PowerSystems.Examples.Introductory.Display.pipe 2>&1)