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.001375/0.001375, allocations: 113.4 kB / 17.05 MB, free: 6.086 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.001281/0.001281, allocations: 192 kB / 17.99 MB, free: 5.184 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.464/1.464, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1868/0.1868, allocations: 38.04 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 63.91 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3683, allocations: 58.06 MB / 0.5036 GB, free: 7.527 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.005494/0.3739, allocations: 4.546 MB / 0.508 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002642/0.3765, allocations: 1.563 MB / 0.5096 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003533/0.3769, allocations: 12.59 kB / 0.5096 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009819/0.3779, allocations: 285.9 kB / 0.5099 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000684/0.3786, allocations: 267.3 kB / 0.5101 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008194/0.3794, allocations: 255.8 kB / 0.5104 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007443/0.3802, allocations: 0.616 MB / 0.511 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004257/0.3806, allocations: 254.6 kB / 0.5112 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003667/0.381, allocations: 265.3 kB / 0.5115 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005259/0.3815, allocations: 325.4 kB / 0.5118 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.515e-05/0.3816, allocations: 34.59 kB / 0.5118 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003322/0.382, allocations: 144.2 kB / 0.5119 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002353/0.3822, allocations: 219.2 kB / 0.5121 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002298/0.3824, allocations: 251.2 kB / 0.5124 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007648/0.3832, allocations: 0.5985 MB / 0.513 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3832, allocations: 5.641 kB / 0.513 GB, free: 1.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3832, allocations: 0 / 0.513 GB, free: 1.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.3833, allocations: 3.938 kB / 0.513 GB, free: 1.742 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.001341/0.3846, allocations: 0.7748 MB / 0.5137 GB, free: 1.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3847, allocations: 13.67 kB / 0.5137 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000101/0.3848, allocations: 90.17 kB / 0.5138 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006843/0.3855, allocations: 91.98 kB / 0.5139 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006667/0.3861, allocations: 422.2 kB / 0.5143 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.324e-05/0.3862, allocations: 30.19 kB / 0.5144 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.3863, allocations: 54.66 kB / 0.5144 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.3874, allocations: 0.6689 MB / 0.5151 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.3874, allocations: 5.312 kB / 0.5151 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.704e-05/0.3875, allocations: 17.38 kB / 0.5151 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001577/0.3876, allocations: 47.34 kB / 0.5151 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008427/0.3885, allocations: 499.7 kB / 0.5156 GB, free: 164 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00439/0.3929, allocations: 3.149 MB / 0.5187 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005793/0.3935, allocations: 247 kB / 0.5189 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002121/0.3937, allocations: 128.1 kB / 0.519 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.3938, allocations: 3.328 kB / 0.519 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.703e-05/0.3938, allocations: 37.8 kB / 0.5191 GB, free: 13.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.916e-06/0.3938, allocations: 4 kB / 0.5191 GB, free: 13.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.002118/0.396, allocations: 0.8992 MB / 0.52 GB, free: 12.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.074e-05/0.3961, allocations: 79.98 kB / 0.52 GB, free: 12.78 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006051/0.3967, allocations: 330.7 kB / 0.5203 GB, free: 12.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.241e-05/0.3967, allocations: 31.05 kB / 0.5204 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003405/0.3971, allocations: 307.5 kB / 0.5207 GB, free: 12.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.3972, allocations: 92.55 kB / 0.5208 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002214/0.3974, allocations: 93.58 kB / 0.5208 GB, free: 12.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002497/0.3977, allocations: 350 kB / 0.5212 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002399/0.3979, allocations: 128.3 kB / 0.5213 GB, free: 11.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004366/0.3984, allocations: 322 kB / 0.5216 GB, free: 11.54 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006974/0.3991, allocations: 0.4892 MB / 0.5221 GB, free: 11.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.3991, allocations: 2.406 kB / 0.5221 GB, free: 11.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001183/0.4003, allocations: 0.5906 MB / 0.5227 GB, free: 10.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.4003, allocations: 10.81 kB / 0.5227 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006681/0.401, allocations: 333.5 kB / 0.523 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005136/0.4015, allocations: 118.8 kB / 0.5231 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003261/0.4018, allocations: 86.92 kB / 0.5232 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003564/0.4054, allocations: 3.289 MB / 0.5264 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.4058, allocations: 15.69 kB / 0.5264 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.746e-05/0.4058, allocations: 22.17 kB / 0.5264 GB, free: 7.723 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.0003804/0.4062, allocations: 217.5 kB / 0.5266 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.063e-05/0.4063, allocations: 35.45 kB / 0.5267 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005939/0.4069, allocations: 319.7 kB / 0.527 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.4069, allocations: 7.562 kB / 0.527 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4069, allocations: 5.062 kB / 0.527 GB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.4069, allocations: 1.781 kB / 0.527 GB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.4083, allocations: 0.8005 MB / 0.5278 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.4083, allocations: 1.438 kB / 0.5278 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003168/0.4086, allocations: 61.89 kB / 0.5278 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.4086, allocations: 7.297 kB / 0.5279 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/0.4086, allocations: 7.469 kB / 0.5279 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.4086, allocations: 3.328 kB / 0.5279 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4087, allocations: 1.25 kB / 0.5279 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007231/0.4094, allocations: 0.5042 MB / 0.5284 GB, free: 6.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.4096, allocations: 133.3 kB / 0.5285 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.731e-05/0.4096, allocations: 9.406 kB / 0.5285 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.4098, allocations: 10.2 kB / 0.5285 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.014e-05/0.4099, allocations: 14.7 kB / 0.5285 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.4099, allocations: 11.09 kB / 0.5285 GB, free: 6.453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002539/0.4101, allocations: 221.3 kB / 0.5287 GB, free: 6.336 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4102, allocations: 0 / 0.5287 GB, free: 6.336 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005764/0.4107, allocations: 98.34 kB / 0.5288 GB, free: 6.324 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.00105/0.4118, allocations: 1.059 MB / 0.5299 GB, free: 5.488 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.4128, allocations: 0.5899 MB / 0.5304 GB, free: 5.137 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/0.4129, allocations: 1.344 kB / 0.5304 GB, free: 5.137 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002308/0.4131, allocations: 121.4 kB / 0.5306 GB, free: 5.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005676/0.4137, allocations: 75.77 kB / 0.5306 GB, free: 5.066 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006189/0.4199, allocations: 4.067 MB / 0.5346 GB, free: 2.332 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000639/0.4205, allocations: 0.8705 MB / 0.5355 GB, free: 1.613 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003237/0.4209, allocations: 112.2 kB / 0.5356 GB, free: 1.602 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002166/0.4211, allocations: 146.1 kB / 0.5357 GB, free: 1.496 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4211, allocations: 0 / 0.5357 GB, free: 1.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04126/0.4624, allocations: 7.629 MB / 0.5431 GB, free: 14.03 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.87, allocations: 1.375 kB / 0.5431 GB, free: 14.03 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)