Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_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.001085/0.001085, allocations: 104 kB / 16.92 MB, free: 5.793 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.001155/0.001155, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.294/1.294, 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.1755/0.1755, allocations: 38.03 MB / 329.7 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 70.81 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.095, allocations: 58.08 MB / 457 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.007164/0.1022, allocations: 6.239 MB / 463.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002327/0.1045, allocations: 1.414 MB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000376/0.1049, allocations: 19.88 kB / 464.7 MB, free: 228 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004938/0.1054, allocations: 142.9 kB / 464.8 MB, free: 84 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009684/0.1064, allocations: 425.9 kB / 465.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00051/0.107, allocations: 187.7 kB / 465.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.1082, allocations: 1.083 MB / 466.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004535/0.1086, allocations: 356.6 kB / 466.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007332/0.1094, allocations: 458.2 kB / 467.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008484/0.1102, allocations: 0.5256 MB / 467.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.1104, allocations: 75.94 kB / 467.9 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001995/0.1106, allocations: 64 kB / 467.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003298/0.111, allocations: 307.3 kB / 468.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004726/0.1114, allocations: 358.4 kB / 468.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008224/0.1123, allocations: 0.841 MB / 469.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1123, allocations: 0 / 469.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1123, allocations: 0 / 469.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.275e-05/0.1123, allocations: 4 kB / 469.4 MB, free: 11.43 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.00207/0.1144, allocations: 1.004 MB / 470.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1145, allocations: 11.89 kB / 470.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.1146, allocations: 98.7 kB / 470.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.1148, allocations: 80.02 kB / 470.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009399/0.1157, allocations: 0.538 MB / 471.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.1159, allocations: 120.6 kB / 471.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.737e-05/0.116, allocations: 59.91 kB / 471.3 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.1173, allocations: 0.7733 MB / 472.1 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.1173, allocations: 0 / 472.1 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.853e-05/0.1174, allocations: 24 kB / 472.1 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/0.1175, allocations: 32.97 kB / 472.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001415/0.1189, allocations: 0.7259 MB / 472.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003616/0.1225, allocations: 2.6 MB / 475.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/0.1241, allocations: 0.8008 MB / 476.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006648/0.1248, allocations: 415.3 kB / 476.7 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.215e-05/0.1249, allocations: 4.438 kB / 476.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.1249, allocations: 35 kB / 476.7 MB, free: 3.832 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.164e-06/0.1249, allocations: 4 kB / 476.7 MB, free: 3.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.004009/0.1289, allocations: 2.139 MB / 478.9 MB, free: 1.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.129, allocations: 81.55 kB / 479 MB, free: 1.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004242/0.1294, allocations: 397.9 kB / 479.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.1295, allocations: 33.7 kB / 479.4 MB, free: 1.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.1297, allocations: 288.5 kB / 479.7 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.1298, allocations: 181.4 kB / 479.8 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.13, allocations: 98.16 kB / 479.9 MB, free: 480 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1301, allocations: 362.8 kB / 480.3 MB, free: 108 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005534/0.1307, allocations: 272.9 kB / 480.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005981/0.1313, allocations: 389.1 kB / 480.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.1324, allocations: 0.646 MB / 481.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1325, allocations: 4 kB / 481.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00151/0.134, allocations: 0.8681 MB / 482.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.134, allocations: 16 kB / 482.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.134, allocations: 0 / 482.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002429/0.1343, allocations: 85.53 kB / 482.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/0.1358, allocations: 311.6 kB / 482.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006088/0.1419, allocations: 6.524 MB / 489.4 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004383/0.1424, allocations: 43.95 kB / 489.4 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-05/0.1425, allocations: 27.98 kB / 489.4 MB, free: 6.27 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.0003393/0.1428, allocations: 242 kB / 489.7 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.702e-05/0.1429, allocations: 47.44 kB / 489.7 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.1444, allocations: 0.8241 MB / 490.6 MB, free: 5.117 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.1444, allocations: 8 kB / 490.6 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.1444, allocations: 0 / 490.6 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.1444, allocations: 3.984 kB / 490.6 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002757/0.1472, allocations: 1.681 MB / 492.2 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1472, allocations: 0 / 492.2 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001704/0.1489, allocations: 323.7 kB / 492.6 MB, free: 3.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002581/0.1492, allocations: 93.53 kB / 492.7 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.647e-05/0.1493, allocations: 16 kB / 492.7 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002338/0.1516, allocations: 3.157 MB / 495.8 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1516, allocations: 0 / 495.8 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002096/0.1537, allocations: 1.316 MB / 497.1 MB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.1539, allocations: 132.4 kB / 497.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.088e-05/0.154, allocations: 19.94 kB / 497.3 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003703/0.1543, allocations: 35.95 kB / 497.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.1545, allocations: 48.03 kB / 497.4 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.588e-05/0.1545, allocations: 16 kB / 497.4 MB, free: 13.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003203/0.1548, allocations: 279.1 kB / 497.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.1549, allocations: 0 / 497.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006468/0.1555, allocations: 151.9 kB / 497.8 MB, free: 13.4 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.002378/0.1579, allocations: 1.88 MB / 499.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002921/0.1608, allocations: 1.175 MB / 0.4891 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1608, allocations: 0 / 0.4891 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002036/0.1629, allocations: 0.7944 MB / 0.4899 GB, free: 9.426 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007891/0.1637, allocations: 132.2 kB / 0.49 GB, free: 9.293 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008781/0.1725, allocations: 5.906 MB / 0.4958 GB, free: 3.141 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005142/0.173, allocations: 0.9447 MB / 0.4967 GB, free: 2.168 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003991/0.1734, allocations: 128.7 kB / 0.4968 GB, free: 2.043 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002761/0.1737, allocations: 195.4 kB / 0.497 GB, free: 1.852 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1737, allocations: 0 / 0.497 GB, free: 1.852 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03744/0.2112, allocations: 12.81 MB / 0.5095 GB, free: 5.211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.6, allocations: 12 kB / 0.5095 GB, free: 5.199 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_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_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)