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.001523/0.001524, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001303/0.001303, allocations: 195 kB / 18 MB, free: 5.074 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.323/1.323, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1762/0.1762, allocations: 38.04 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 59.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2819, allocations: 58.06 MB / 0.5036 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Display): time 0.006416/0.2883, allocations: 6.65 MB / 0.5101 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002818/0.2911, allocations: 2.013 MB / 0.5121 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003272/0.2915, allocations: 23.41 kB / 0.5121 GB, free: 1.332 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001609/0.2931, allocations: 0.7168 MB / 0.5128 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001241/0.2944, allocations: 0.5782 MB / 0.5133 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006164/0.295, allocations: 243 kB / 0.5136 GB, free: 484 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001106/0.2961, allocations: 1.139 MB / 0.5147 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007846/0.2969, allocations: 0.5941 MB / 0.5153 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007667/0.2977, allocations: 0.5269 MB / 0.5158 GB, free: 15.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008574/0.2986, allocations: 0.6108 MB / 0.5164 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00012/0.2987, allocations: 68.12 kB / 0.5164 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005987/0.2993, allocations: 265.5 kB / 0.5167 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005472/0.2999, allocations: 488.1 kB / 0.5172 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006182/0.3005, allocations: 489.8 kB / 0.5176 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.3019, allocations: 1.19 MB / 0.5188 GB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3019, allocations: 0 / 0.5188 GB, free: 14.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3019, allocations: 1.75 kB / 0.5188 GB, free: 14.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.3019, allocations: 3.938 kB / 0.5188 GB, free: 14.32 MB / 398.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.00219/0.3041, allocations: 1.235 MB / 0.52 GB, free: 13.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3042, allocations: 13.08 kB / 0.52 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001733/0.3043, allocations: 143.5 kB / 0.5202 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00101/0.3053, allocations: 171.9 kB / 0.5203 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.3066, allocations: 0.6241 MB / 0.5209 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.31e-05/0.3067, allocations: 71.5 kB / 0.521 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000247/0.307, allocations: 100.9 kB / 0.5211 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001927/0.3089, allocations: 1.154 MB / 0.5222 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.264e-05/0.309, allocations: 3.453 kB / 0.5222 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.139e-05/0.3091, allocations: 36.23 kB / 0.5223 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000187/0.3093, allocations: 90.89 kB / 0.5223 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.311, allocations: 0.9975 MB / 0.5233 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005767/0.3168, allocations: 4.353 MB / 0.5276 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.318, allocations: 0.627 MB / 0.5282 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000471/0.3185, allocations: 311.7 kB / 0.5285 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.3185, allocations: 7.438 kB / 0.5285 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.3186, allocations: 42.58 kB / 0.5285 GB, free: 8.641 MB / 398.1 MB Notification: Performance of pre-optimization done (n=63): time 2.565e-06/0.3186, allocations: 0 / 0.5285 GB, free: 8.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=64): time 0.003012/0.3216, allocations: 1.768 MB / 0.5302 GB, free: 7.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.3217, allocations: 88.33 kB / 0.5303 GB, free: 7.562 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005891/0.3223, allocations: 0.5446 MB / 0.5309 GB, free: 7.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.464e-05/0.3223, allocations: 40.33 kB / 0.5309 GB, free: 7.188 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002647/0.3226, allocations: 448.1 kB / 0.5313 GB, free: 6.793 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/0.3228, allocations: 236.2 kB / 0.5316 GB, free: 6.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002408/0.323, allocations: 188.6 kB / 0.5317 GB, free: 6.477 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.3232, allocations: 376.7 kB / 0.5321 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004581/0.3236, allocations: 289 kB / 0.5324 GB, free: 5.984 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006472/0.3243, allocations: 0.6051 MB / 0.533 GB, free: 5.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.3255, allocations: 0.976 MB / 0.5339 GB, free: 4.637 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.3255, allocations: 3.375 kB / 0.5339 GB, free: 4.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002125/0.3277, allocations: 1.176 MB / 0.5351 GB, free: 4.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.3277, allocations: 10.5 kB / 0.5351 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001334/0.329, allocations: 0.718 MB / 0.5358 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000729/0.3298, allocations: 214.3 kB / 0.536 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007745/0.3306, allocations: 228.7 kB / 0.5362 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004564/0.3351, allocations: 5.366 MB / 0.5414 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006262/0.3358, allocations: 35.44 kB / 0.5415 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.799e-05/0.3359, allocations: 43.44 kB / 0.5415 GB, free: 14.41 MB / 414.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.0005053/0.3364, allocations: 351.8 kB / 0.5418 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.3365, allocations: 70.05 kB / 0.5419 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001111/0.3376, allocations: 0.6502 MB / 0.5426 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.3376, allocations: 15.08 kB / 0.5426 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.3376, allocations: 1.406 kB / 0.5426 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.3377, allocations: 4 kB / 0.5426 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/0.3402, allocations: 1.538 MB / 0.5441 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3402, allocations: 1.656 kB / 0.5441 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008079/0.341, allocations: 171.8 kB / 0.5442 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.3411, allocations: 4.781 kB / 0.5442 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.793e-05/0.3411, allocations: 18.8 kB / 0.5443 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.3411, allocations: 6.969 kB / 0.5443 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3411, allocations: 3.125 kB / 0.5443 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.3426, allocations: 1.032 MB / 0.5453 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003123/0.3429, allocations: 183.9 kB / 0.5455 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.415e-05/0.343, allocations: 22.83 kB / 0.5455 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003231/0.3433, allocations: 12.81 kB / 0.5455 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.3435, allocations: 47.03 kB / 0.5455 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.287e-05/0.3435, allocations: 22.08 kB / 0.5456 GB, free: 11.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004206/0.3439, allocations: 357.9 kB / 0.5459 GB, free: 11.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3439, allocations: 0 / 0.5459 GB, free: 11.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009381/0.3449, allocations: 220.7 kB / 0.5461 GB, free: 11.61 MB / 414.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.001653/0.3465, allocations: 1.59 MB / 0.5477 GB, free: 9.977 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.3483, allocations: 1.11 MB / 0.5487 GB, free: 8.828 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3483, allocations: 1 kB / 0.5487 GB, free: 8.828 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004523/0.3487, allocations: 319.3 kB / 0.549 GB, free: 8.516 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008446/0.3496, allocations: 162.1 kB / 0.5492 GB, free: 8.359 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009065/0.3587, allocations: 7.163 MB / 0.5562 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006464/0.3593, allocations: 1.075 MB / 0.5572 GB, free: 15.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005899/0.3599, allocations: 233.6 kB / 0.5575 GB, free: 15.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003831/0.3603, allocations: 303.3 kB / 0.5578 GB, free: 15.12 MB / 430.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3603, allocations: 0 / 0.5578 GB, free: 15.12 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03918/0.3995, allocations: 15.46 MB / 0.5729 GB, free: 15.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.68, allocations: 7.844 kB / 0.5729 GB, free: 15.76 MB / 446.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)