Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.001418/0.001418, 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.001327/0.001327, 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.341/1.341, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2385/0.2385, allocations: 38.03 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 58.72 kB / 398.9 MB, free: 33.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09725/0.09866, allocations: 58.06 MB / 457 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.00783/0.1065, allocations: 5.966 MB / 462.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0027/0.1093, allocations: 1.558 MB / 464.5 MB, free: 376 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004728/0.1098, allocations: 27.81 kB / 464.5 MB, free: 348 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005605/0.1103, allocations: 142.9 kB / 464.7 MB, free: 204 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009897/0.1114, allocations: 350.3 kB / 465 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006904/0.1121, allocations: 323.5 kB / 465.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001464/0.1136, allocations: 1.336 MB / 466.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004928/0.1141, allocations: 364.6 kB / 467 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008521/0.1149, allocations: 0.5296 MB / 467.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009285/0.1159, allocations: 0.5452 MB / 468.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002384/0.1161, allocations: 92 kB / 468.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000266/0.1164, allocations: 92 kB / 468.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004107/0.1168, allocations: 347.2 kB / 468.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005967/0.1174, allocations: 406.3 kB / 469 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001048/0.1185, allocations: 1.055 MB / 470.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1185, allocations: 0 / 470.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1185, allocations: 0 / 470.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.821e-05/0.1186, allocations: 3.938 kB / 470.1 MB, free: 10.79 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002759/0.1213, allocations: 1.188 MB / 471.2 MB, free: 9.535 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.1214, allocations: 15.89 kB / 471.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001868/0.1216, allocations: 110.7 kB / 471.4 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.1217, allocations: 80.09 kB / 471.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001242/0.123, allocations: 0.6355 MB / 472.1 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004264/0.1234, allocations: 331.2 kB / 472.4 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.1236, allocations: 67.89 kB / 472.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00224/0.1258, allocations: 1.046 MB / 473.5 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.1258, allocations: 0 / 473.5 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.998e-05/0.1259, allocations: 20 kB / 473.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.126, allocations: 16 kB / 473.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002703/0.1287, allocations: 1.089 MB / 474.6 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005228/0.1339, allocations: 3.209 MB / 477.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002236/0.1362, allocations: 0.7533 MB / 478.6 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.1377, allocations: 0.526 MB / 479.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.65e-05/0.1377, allocations: 12.44 kB / 479.1 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001494/0.1392, allocations: 0.6186 MB / 479.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.796e-06/0.1392, allocations: 0 / 479.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.00411/0.1434, allocations: 1.364 MB / 481.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.522e-05/0.1435, allocations: 140.5 kB / 481.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000461/0.1439, allocations: 389.9 kB / 481.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.187e-05/0.144, allocations: 41.69 kB / 481.7 MB, free: 14.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002138/0.1442, allocations: 304.3 kB / 482 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.1444, allocations: 157.7 kB / 482.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002149/0.1446, allocations: 122.1 kB / 482.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.1448, allocations: 354.8 kB / 482.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.1458, allocations: 460.9 kB / 483 MB, free: 13.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/0.1469, allocations: 0.5445 MB / 483.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00191/0.1488, allocations: 0.8857 MB / 484.5 MB, free: 11.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1489, allocations: 4 kB / 484.5 MB, free: 11.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002389/0.1513, allocations: 1.093 MB / 485.6 MB, free: 10.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.249e-05/0.1513, allocations: 45.69 kB / 485.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.1513, allocations: 8 kB / 485.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.1514, allocations: 8 kB / 485.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006063/0.1574, allocations: 1.108 MB / 486.7 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008088/0.1655, allocations: 4.697 MB / 491.4 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007881/0.1664, allocations: 107.5 kB / 491.5 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/0.1665, allocations: 47.84 kB / 491.6 MB, free: 4.438 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004642/0.167, allocations: 251.3 kB / 491.8 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.1672, allocations: 59.27 kB / 491.9 MB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002753/0.1699, allocations: 0.9849 MB / 492.9 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.1699, allocations: 4 kB / 492.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1699, allocations: 4 kB / 492.9 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.17, allocations: 3.984 kB / 492.9 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004094/0.1741, allocations: 2.131 MB / 495 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.1741, allocations: 4 kB / 495 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007158/0.1812, allocations: 1.28 MB / 496.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.14e-05/0.1813, allocations: 7.984 kB / 496.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.706e-05/0.1813, allocations: 12 kB / 496.3 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.835e-06/0.1814, allocations: 11.92 kB / 496.3 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.1814, allocations: 11.94 kB / 496.3 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004198/0.1856, allocations: 1.691 MB / 498 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003055/0.1859, allocations: 204.4 kB / 498.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.186, allocations: 27.98 kB / 498.3 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000729/0.1868, allocations: 87.88 kB / 498.4 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.187, allocations: 91.8 kB / 498.4 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.005e-05/0.187, allocations: 24.08 kB / 498.5 MB, free: 13.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002967/0.1873, allocations: 267.1 kB / 498.7 MB, free: 13.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1874, allocations: 0 / 498.7 MB, free: 13.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006317/0.188, allocations: 179.6 kB / 498.9 MB, free: 12.96 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.004437/0.1924, allocations: 2.274 MB / 0.4894 GB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007974/0.2004, allocations: 2.164 MB / 0.4915 GB, free: 8.457 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.2005, allocations: 7.938 kB / 0.4916 GB, free: 8.449 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003748/0.2042, allocations: 0.9605 MB / 0.4925 GB, free: 7.488 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009125/0.2052, allocations: 137 kB / 0.4926 GB, free: 7.359 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01174/0.2169, allocations: 6.605 MB / 0.4991 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/0.2175, allocations: 0.9368 MB / 0.5 GB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000571/0.2181, allocations: 152.6 kB / 0.5001 GB, free: 15.44 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003377/0.2184, allocations: 195.4 kB / 0.5003 GB, free: 15.25 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2184, allocations: 0 / 0.5003 GB, free: 15.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03344/0.2519, allocations: 13.5 MB / 0.5135 GB, free: 1.934 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.23, allocations: 17.09 kB / 0.5135 GB, free: 1.922 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_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_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)