Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.001527/0.001527, allocations: 105.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.001837/0.001837, 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.37/1.37, allocations: 222.9 MB / 241.5 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.1754/0.1754, allocations: 38.02 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 68.84 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09427/0.09556, allocations: 58.05 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.00739/0.103, allocations: 6.499 MB / 463.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.1051, allocations: 1.321 MB / 464.8 MB, free: 116 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003742/0.1055, allocations: 23.88 kB / 464.8 MB, free: 92 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003827/0.1059, allocations: 127 kB / 464.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001049/0.107, allocations: 425.9 kB / 465.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005184/0.1075, allocations: 231.6 kB / 465.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001223/0.1087, allocations: 1.118 MB / 466.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005311/0.1093, allocations: 405.8 kB / 467.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007906/0.1101, allocations: 490.1 kB / 467.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007374/0.1108, allocations: 0.5294 MB / 468.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.1109, allocations: 64 kB / 468.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.1111, allocations: 68 kB / 468.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003208/0.1114, allocations: 331.1 kB / 468.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003938/0.1118, allocations: 406.1 kB / 468.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007758/0.1126, allocations: 0.8994 MB / 469.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1126, allocations: 0 / 469.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1126, allocations: 0 / 469.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.1126, allocations: 0 / 469.8 MB, free: 11.04 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001906/0.1146, allocations: 1.148 MB / 471 MB, free: 9.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.1146, allocations: 15.89 kB / 471 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000116/0.1147, allocations: 114.7 kB / 471.1 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.1149, allocations: 84 kB / 471.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008045/0.1157, allocations: 0.5727 MB / 471.8 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.1158, allocations: 120.6 kB / 471.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.966e-05/0.1159, allocations: 64 kB / 471.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.1173, allocations: 0.8614 MB / 472.8 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.1174, allocations: 3.938 kB / 472.8 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.52e-05/0.1174, allocations: 28 kB / 472.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001201/0.1176, allocations: 37.28 kB / 472.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.1187, allocations: 0.6179 MB / 473.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003446/0.1222, allocations: 2.762 MB / 476.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.1239, allocations: 0.9024 MB / 477.2 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007262/0.1246, allocations: 320.6 kB / 477.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.1247, allocations: 8.312 kB / 477.5 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007077/0.1254, allocations: 346.6 kB / 477.8 MB, free: 2.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.425e-06/0.1254, allocations: 0 / 477.8 MB, free: 2.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.004143/0.1295, allocations: 1.979 MB / 479.8 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.1296, allocations: 118.9 kB / 479.9 MB, free: 444 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005668/0.1302, allocations: 0.5066 MB / 480.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.198e-05/0.1303, allocations: 41.64 kB / 480.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002636/0.1305, allocations: 359.7 kB / 480.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.1306, allocations: 138.1 kB / 480.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.1308, allocations: 118.1 kB / 481.1 MB, free: 15.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.131, allocations: 374.8 kB / 481.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003331/0.1313, allocations: 225.1 kB / 481.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004183/0.1318, allocations: 390.2 kB / 482 MB, free: 14.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007519/0.1325, allocations: 0.6249 MB / 482.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1325, allocations: 0 / 482.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001532/0.1341, allocations: 0.894 MB / 483.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.6e-05/0.1341, allocations: 53.62 kB / 483.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.1341, allocations: 4 kB / 483.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002772/0.1344, allocations: 94 kB / 483.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003822/0.1348, allocations: 103.8 kB / 483.8 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/0.1373, allocations: 3.263 MB / 487.1 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003718/0.1377, allocations: 31.97 kB / 487.1 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.844e-05/0.1377, allocations: 47.91 kB / 487.1 MB, free: 8.691 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003349/0.1381, allocations: 269.6 kB / 487.4 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.46e-05/0.1382, allocations: 59.25 kB / 487.5 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00146/0.1396, allocations: 0.6965 MB / 488.2 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.1397, allocations: 11.98 kB / 488.2 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1397, allocations: 3.938 kB / 488.2 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1397, allocations: 0 / 488.2 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002372/0.1421, allocations: 1.539 MB / 489.7 MB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.1421, allocations: 4 kB / 489.7 MB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002765/0.1424, allocations: 51.97 kB / 489.8 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002751/0.1426, allocations: 105.6 kB / 489.9 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/0.1427, allocations: 15.98 kB / 489.9 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00231/0.145, allocations: 3.263 MB / 493.1 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.145, allocations: 4.031 kB / 493.1 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.1471, allocations: 1.059 MB / 494.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002299/0.1473, allocations: 176.3 kB / 494.4 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.1474, allocations: 27.98 kB / 494.4 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003998/0.1478, allocations: 35.95 kB / 494.4 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.095e-05/0.1479, allocations: 35.89 kB / 494.5 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.378e-05/0.148, allocations: 19.98 kB / 494.5 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003891/0.1484, allocations: 358.8 kB / 494.8 MB, free: 500 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.272e-06/0.1484, allocations: 0 / 494.8 MB, free: 500 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006525/0.149, allocations: 151.9 kB / 495 MB, free: 348 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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,1,100.0%), (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.002347/0.1514, allocations: 1.646 MB / 496.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.1531, allocations: 0.957 MB / 497.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1531, allocations: 4.188 kB / 497.6 MB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009048/0.154, allocations: 0.5048 MB / 498.1 MB, free: 13.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007833/0.1548, allocations: 147.8 kB / 498.3 MB, free: 12.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007272/0.1621, allocations: 6.184 MB / 0.4926 GB, free: 6.496 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005146/0.1626, allocations: 0.976 MB / 0.4936 GB, free: 5.492 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003355/0.163, allocations: 101 kB / 0.4937 GB, free: 5.391 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002771/0.1632, allocations: 227.4 kB / 0.4939 GB, free: 5.168 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1632, allocations: 0 / 0.4939 GB, free: 5.168 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03394/0.1972, allocations: 13.03 MB / 0.5066 GB, free: 8.293 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.234/9.432, allocations: 8 kB / 0.5066 GB, free: 8.285 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)