Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.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.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",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.0011/0.0011, allocations: 111.7 kB / 17.06 MB, free: 6.016 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.001035/0.001035, allocations: 191 kB / 18 MB, free: 5.098 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.329/1.329, allocations: 222.9 MB / 241.7 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1722/0.1722, allocations: 38.03 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 59.91 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3665, allocations: 58.06 MB / 0.5036 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.006277/0.3728, allocations: 4.553 MB / 0.5081 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002812/0.3757, allocations: 1.552 MB / 0.5096 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.3759, allocations: 16.38 kB / 0.5096 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008069/0.3767, allocations: 293.7 kB / 0.5099 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005528/0.3773, allocations: 273.5 kB / 0.5101 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006574/0.378, allocations: 251.1 kB / 0.5104 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006232/0.3786, allocations: 0.6144 MB / 0.511 GB, free: 2.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000448/0.3791, allocations: 263.3 kB / 0.5112 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003809/0.3794, allocations: 271.4 kB / 0.5115 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005367/0.38, allocations: 329.5 kB / 0.5118 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.368e-05/0.3801, allocations: 34.12 kB / 0.5118 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002892/0.3804, allocations: 139.4 kB / 0.512 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002202/0.3806, allocations: 219.6 kB / 0.5122 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002192/0.3808, allocations: 252 kB / 0.5124 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007071/0.3815, allocations: 0.599 MB / 0.513 GB, free: 1.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3816, allocations: 0.7031 kB / 0.513 GB, free: 1.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3816, allocations: 0 / 0.513 GB, free: 1.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.3816, allocations: 3.938 kB / 0.513 GB, free: 1.75 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001245/0.3828, allocations: 0.7826 MB / 0.5138 GB, free: 1.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.3829, allocations: 12.8 kB / 0.5138 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.775e-05/0.383, allocations: 83.73 kB / 0.5139 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006224/0.3836, allocations: 91.58 kB / 0.5139 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000661/0.3843, allocations: 423.6 kB / 0.5143 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.3843, allocations: 31.86 kB / 0.5144 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001483/0.3844, allocations: 50.81 kB / 0.5144 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009647/0.3854, allocations: 0.6627 MB / 0.5151 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.3855, allocations: 5.109 kB / 0.5151 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.788e-05/0.3855, allocations: 20.95 kB / 0.5151 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001611/0.3857, allocations: 52.27 kB / 0.5151 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007902/0.3865, allocations: 497.7 kB / 0.5156 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003761/0.3902, allocations: 3.145 MB / 0.5187 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004631/0.3907, allocations: 247 kB / 0.5189 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001923/0.3909, allocations: 127.1 kB / 0.519 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.391, allocations: 8.359 kB / 0.5191 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.391, allocations: 33.42 kB / 0.5191 GB, free: 13.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 3.847e-06/0.391, allocations: 5.078 kB / 0.5191 GB, free: 13.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.001478/0.3925, allocations: 0.8988 MB / 0.52 GB, free: 12.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.3926, allocations: 81.38 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.3929, allocations: 332.2 kB / 0.5204 GB, free: 12.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.3929, allocations: 34.52 kB / 0.5204 GB, free: 12.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.3931, allocations: 298.1 kB / 0.5207 GB, free: 12.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.772e-05/0.3932, allocations: 97.64 kB / 0.5208 GB, free: 12.26 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.3933, allocations: 88.2 kB / 0.5209 GB, free: 12.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3935, allocations: 353.2 kB / 0.5212 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.3937, allocations: 125.8 kB / 0.5213 GB, free: 11.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.394, allocations: 323.6 kB / 0.5216 GB, free: 11.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005753/0.3946, allocations: 498.3 kB / 0.5221 GB, free: 11.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3946, allocations: 1.5 kB / 0.5221 GB, free: 11.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001059/0.3957, allocations: 0.5952 MB / 0.5227 GB, free: 10.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.3957, allocations: 12.06 kB / 0.5227 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006172/0.3963, allocations: 333.2 kB / 0.523 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004185/0.3968, allocations: 119.4 kB / 0.5231 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003042/0.3971, allocations: 85.72 kB / 0.5232 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002849/0.3999, allocations: 3.289 MB / 0.5264 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002891/0.4003, allocations: 15.73 kB / 0.5264 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.317e-05/0.4003, allocations: 22.52 kB / 0.5265 GB, free: 7.734 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0002939/0.4006, allocations: 212.5 kB / 0.5267 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.369e-05/0.4007, allocations: 35.94 kB / 0.5267 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005635/0.4012, allocations: 320.2 kB / 0.527 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.4013, allocations: 6.656 kB / 0.527 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.4013, allocations: 4.938 kB / 0.527 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.4013, allocations: 3.359 kB / 0.527 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.4025, allocations: 0.8011 MB / 0.5278 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.4025, allocations: 0 / 0.5278 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003282/0.4028, allocations: 62.16 kB / 0.5279 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.4028, allocations: 2.844 kB / 0.5279 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.459e-05/0.4029, allocations: 11.8 kB / 0.5279 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.4029, allocations: 3.141 kB / 0.5279 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.4029, allocations: 5.125 kB / 0.5279 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006951/0.4036, allocations: 0.512 MB / 0.5284 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.4037, allocations: 130.2 kB / 0.5285 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.843e-05/0.4038, allocations: 7.438 kB / 0.5285 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.404, allocations: 11.38 kB / 0.5285 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.552e-05/0.404, allocations: 13.58 kB / 0.5285 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.051e-05/0.404, allocations: 11.34 kB / 0.5285 GB, free: 6.465 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000252/0.4043, allocations: 221.6 kB / 0.5288 GB, free: 6.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4043, allocations: 0 / 0.5288 GB, free: 6.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005604/0.4049, allocations: 99.05 kB / 0.5288 GB, free: 6.336 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (indYD.i[1],indYD.i[2],indYD.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 (27): * Single equations (assignments): 26 * 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.0009533/0.4058, allocations: 1.051 MB / 0.5299 GB, free: 5.504 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009683/0.4068, allocations: 0.5971 MB / 0.5305 GB, free: 5.145 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.4068, allocations: 3.094 kB / 0.5305 GB, free: 5.145 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.407, allocations: 123.5 kB / 0.5306 GB, free: 5.105 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005099/0.4075, allocations: 73.39 kB / 0.5306 GB, free: 5.078 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005072/0.4126, allocations: 4.069 MB / 0.5346 GB, free: 2.348 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.4131, allocations: 0.8709 MB / 0.5355 GB, free: 1.629 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002864/0.4134, allocations: 114.7 kB / 0.5356 GB, free: 1.613 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002094/0.4136, allocations: 146.7 kB / 0.5357 GB, free: 1.508 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4137, allocations: 0 / 0.5357 GB, free: 1.508 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02865/0.4423, allocations: 7.614 MB / 0.5432 GB, free: 14.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.657/10.1, allocations: 4.188 kB / 0.5432 GB, free: 14.02 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1)