Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.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.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",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.001073/0.001073, allocations: 107.9 kB / 16.92 MB, free: 6.332 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.001239/0.001239, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.352/1.352, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1816/0.1816, allocations: 38.03 MB / 329.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 67.23 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1026, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.008775/0.1114, allocations: 6.935 MB / 463.9 MB, free: 1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003829/0.1153, allocations: 2.025 MB / 465.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007417/0.1161, allocations: 31.81 kB / 466 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001703/0.1179, allocations: 0.4899 MB / 466.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001963/0.1198, allocations: 0.556 MB / 467 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001191/0.121, allocations: 399.2 kB / 467.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001747/0.1228, allocations: 1.403 MB / 468.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001427/0.1243, allocations: 0.8263 MB / 469.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0011/0.1254, allocations: 0.6034 MB / 470.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.1266, allocations: 0.6776 MB / 470.9 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002714/0.1269, allocations: 100 kB / 471 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00113/0.128, allocations: 0.5461 MB / 471.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005963/0.1286, allocations: 0.4949 MB / 472 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009058/0.1295, allocations: 0.5715 MB / 472.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001874/0.1314, allocations: 1.499 MB / 474.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1314, allocations: 0 / 474.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1314, allocations: 0 / 474.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.344e-05/0.1315, allocations: 0 / 474.1 MB, free: 6.746 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003728/0.1352, allocations: 1.57 MB / 475.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.1353, allocations: 11.89 kB / 475.7 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002531/0.1355, allocations: 156.3 kB / 475.8 MB, free: 4.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008994/0.1364, allocations: 171.4 kB / 476 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00126/0.1377, allocations: 0.6902 MB / 476.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/0.1379, allocations: 175.4 kB / 476.9 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002798/0.1382, allocations: 111.9 kB / 477 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002922/0.1412, allocations: 1.532 MB / 478.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.762e-05/0.1412, allocations: 0 / 478.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.1413, allocations: 40 kB / 478.6 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001726/0.1415, allocations: 69.91 kB / 478.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002401/0.1439, allocations: 1.163 MB / 479.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006539/0.1505, allocations: 4.797 MB / 484.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003149/0.1536, allocations: 1.123 MB / 485.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001387/0.1551, allocations: 0.5618 MB / 486.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.314e-05/0.1551, allocations: 16.55 kB / 486.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001557/0.1567, allocations: 0.7144 MB / 487 MB, free: 9.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=80): time 4.127e-06/0.1567, allocations: 0 / 487 MB, free: 9.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=81): time 0.007663/0.1644, allocations: 3.185 MB / 490.2 MB, free: 6.148 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.917e-05/0.1645, allocations: 131.4 kB / 490.3 MB, free: 5.996 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007238/0.1652, allocations: 0.6004 MB / 490.9 MB, free: 5.387 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.143e-05/0.1653, allocations: 49.69 kB / 491 MB, free: 5.332 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003532/0.1657, allocations: 455.1 kB / 491.4 MB, free: 4.879 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002429/0.1659, allocations: 272.2 kB / 491.7 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.1663, allocations: 202.5 kB / 491.9 MB, free: 4.406 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.1664, allocations: 386.8 kB / 492.2 MB, free: 4.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007293/0.1672, allocations: 486 kB / 492.7 MB, free: 3.539 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009284/0.1681, allocations: 0.7499 MB / 493.5 MB, free: 2.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.1698, allocations: 1.254 MB / 494.7 MB, free: 1.309 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.1698, allocations: 3.938 kB / 494.7 MB, free: 1.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00269/0.1725, allocations: 1.58 MB / 496.3 MB, free: 15.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.765e-05/0.1727, allocations: 71.95 kB / 496.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001976/0.1746, allocations: 1.326 MB / 497.7 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000448/0.1751, allocations: 117.6 kB / 497.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000855/0.176, allocations: 199.6 kB / 498 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003148/0.1791, allocations: 3.361 MB / 0.4896 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007847/0.1799, allocations: 71.92 kB / 0.4897 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/0.1801, allocations: 87.91 kB / 0.4898 GB, free: 10.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * Algorithm blocks: 1 * 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,2,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006356/0.1808, allocations: 377.5 kB / 0.4901 GB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002098/0.181, allocations: 75.06 kB / 0.4902 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002949/0.1839, allocations: 1.263 MB / 0.4914 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.619e-05/0.184, allocations: 20 kB / 0.4915 GB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.184, allocations: 11.92 kB / 0.4915 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.184, allocations: 7.922 kB / 0.4915 GB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004791/0.1888, allocations: 2.436 MB / 0.4939 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.1889, allocations: 0 / 0.4939 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007702/0.1896, allocations: 147.8 kB / 0.494 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001237/0.1898, allocations: 40.94 kB / 0.494 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.43e-05/0.1899, allocations: 27.97 kB / 0.4941 GB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.1911, allocations: 1.63 MB / 0.4957 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.1912, allocations: 4 kB / 0.4957 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004196/0.1954, allocations: 1.919 MB / 0.4975 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004664/0.1959, allocations: 244 kB / 0.4978 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002676/0.1961, allocations: 75.95 kB / 0.4978 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008693/0.197, allocations: 95.8 kB / 0.4979 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.1972, allocations: 64.52 kB / 0.498 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.479e-05/0.1973, allocations: 23.98 kB / 0.498 GB, free: 1.363 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005435/0.1978, allocations: 402.8 kB / 0.4984 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.643e-06/0.1978, allocations: 0 / 0.4984 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001066/0.1989, allocations: 239.9 kB / 0.4986 GB, free: 0.7344 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004641/0.2035, allocations: 2.546 MB / 0.5011 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00378/0.2073, allocations: 1.975 MB / 0.503 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.2074, allocations: 0 / 0.503 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001413/0.2088, allocations: 0.6585 MB / 0.5037 GB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.2099, allocations: 171.3 kB / 0.5038 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0134/0.2233, allocations: 9.392 MB / 0.513 GB, free: 1.453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009071/0.2242, allocations: 1.111 MB / 0.5141 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007204/0.225, allocations: 242.5 kB / 0.5143 GB, free: 76 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.174/0.399, allocations: 326.5 kB / 0.5146 GB, free: 70.67 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3991, allocations: 0.625 kB / 0.5146 GB, free: 70.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04902/0.4481, allocations: 18.5 MB / 0.5327 GB, free: 65.53 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.534/9.982, allocations: 3.906 kB / 0.5327 GB, free: 65.53 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)