Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",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.001083/0.001083, allocations: 107.5 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.001163/0.001163, 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.63/1.63, allocations: 222.9 MB / 241.5 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1916/0.1916, allocations: 38.04 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001486, allocations: 64.09 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1301, allocations: 58.07 MB / 457 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.009928/0.1401, allocations: 6.252 MB / 463.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003343/0.1435, allocations: 1.418 MB / 464.6 MB, free: 236 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009124/0.1444, allocations: 27.81 kB / 464.7 MB, free: 208 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.1455, allocations: 134.9 kB / 464.8 MB, free: 72 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.1471, allocations: 422.1 kB / 465.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000637/0.1477, allocations: 191.6 kB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001512/0.1493, allocations: 1.079 MB / 466.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005328/0.1498, allocations: 364.6 kB / 466.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008695/0.1507, allocations: 454.3 kB / 467.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.1518, allocations: 0.5335 MB / 467.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001999/0.152, allocations: 64 kB / 467.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002465/0.1522, allocations: 71.94 kB / 468 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003781/0.1526, allocations: 299.3 kB / 468.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005706/0.1532, allocations: 366.3 kB / 468.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009935/0.1542, allocations: 0.8409 MB / 469.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1542, allocations: 0 / 469.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.1542, allocations: 0 / 469.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.524e-05/0.1543, allocations: 0 / 469.4 MB, free: 11.42 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002694/0.157, allocations: 1.004 MB / 470.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.1571, allocations: 11.89 kB / 470.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002551/0.1573, allocations: 98.64 kB / 470.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001718/0.1575, allocations: 72.09 kB / 470.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00117/0.1587, allocations: 0.5458 MB / 471.2 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/0.1589, allocations: 120.6 kB / 471.3 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.159, allocations: 55.91 kB / 471.3 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.1604, allocations: 0.7733 MB / 472.1 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.1604, allocations: 7.938 kB / 472.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.078e-05/0.1605, allocations: 20 kB / 472.1 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001221/0.1606, allocations: 36.97 kB / 472.2 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.1622, allocations: 0.722 MB / 472.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003997/0.1662, allocations: 2.593 MB / 475.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.1679, allocations: 0.8096 MB / 476.3 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007224/0.1687, allocations: 403.4 kB / 476.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.161e-05/0.1687, allocations: 8.422 kB / 476.7 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.1688, allocations: 39 kB / 476.7 MB, free: 3.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.765e-06/0.1688, allocations: 0 / 476.7 MB, free: 3.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.004757/0.1735, allocations: 2.135 MB / 478.9 MB, free: 1.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.127e-05/0.1736, allocations: 89.58 kB / 479 MB, free: 1.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005482/0.1742, allocations: 401.9 kB / 479.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.565e-05/0.1742, allocations: 33.7 kB / 479.4 MB, free: 1.023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002466/0.1745, allocations: 284.5 kB / 479.7 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.1747, allocations: 181.4 kB / 479.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001859/0.1749, allocations: 98.16 kB / 479.9 MB, free: 468 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.175, allocations: 358.8 kB / 480.3 MB, free: 100 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006279/0.1757, allocations: 280.9 kB / 480.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007757/0.1765, allocations: 385.1 kB / 480.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/0.1777, allocations: 0.6498 MB / 481.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1777, allocations: 0 / 481.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001674/0.1794, allocations: 0.8717 MB / 482.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.1794, allocations: 8 kB / 482.5 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.1794, allocations: 4.375 kB / 482.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003405/0.1798, allocations: 77.61 kB / 482.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/0.1814, allocations: 307.5 kB / 482.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006286/0.1877, allocations: 6.532 MB / 489.4 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/0.1883, allocations: 39.95 kB / 489.4 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.02e-05/0.1884, allocations: 20 kB / 489.4 MB, free: 6.273 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000487/0.1888, allocations: 241.9 kB / 489.7 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.189, allocations: 51.5 kB / 489.7 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001574/0.1906, allocations: 0.828 MB / 490.6 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.1906, allocations: 12 kB / 490.6 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.1906, allocations: 0 / 490.6 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.1906, allocations: 3.984 kB / 490.6 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002924/0.1936, allocations: 1.685 MB / 492.3 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.1936, allocations: 0 / 492.3 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001761/0.1954, allocations: 319.7 kB / 492.6 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002964/0.1957, allocations: 97.53 kB / 492.7 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.623e-05/0.1957, allocations: 11.98 kB / 492.7 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002463/0.1982, allocations: 3.157 MB / 495.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.1982, allocations: 7.969 kB / 495.8 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002355/0.2006, allocations: 1.316 MB / 497.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002047/0.2008, allocations: 120.5 kB / 497.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.2009, allocations: 19.97 kB / 497.3 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004149/0.2013, allocations: 39.95 kB / 497.3 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.2015, allocations: 43.94 kB / 497.4 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.914e-05/0.2015, allocations: 20 kB / 497.4 MB, free: 13.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003439/0.2019, allocations: 283.1 kB / 497.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2019, allocations: 0 / 497.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007189/0.2026, allocations: 144 kB / 497.8 MB, free: 13.39 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002534/0.2052, allocations: 1.876 MB / 499.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00311/0.2083, allocations: 1.175 MB / 0.4891 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.2083, allocations: 3.938 kB / 0.4891 GB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002173/0.2105, allocations: 0.8022 MB / 0.4899 GB, free: 9.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009303/0.2115, allocations: 136.5 kB / 0.49 GB, free: 9.277 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/0.2221, allocations: 5.909 MB / 0.4958 GB, free: 3.125 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008035/0.223, allocations: 0.9369 MB / 0.4967 GB, free: 2.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004898/0.2235, allocations: 128.7 kB / 0.4969 GB, free: 2.035 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000349/0.2239, allocations: 203.4 kB / 0.497 GB, free: 1.836 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.2239, allocations: 0 / 0.497 GB, free: 1.836 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0395/0.2634, allocations: 12.81 MB / 0.5096 GB, free: 5.219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.73, allocations: 7.688 kB / 0.5096 GB, free: 5.211 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier_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_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)