Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_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.00156/0.00156, 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.001761/0.001761, 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.409/1.409, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2033/0.2033, allocations: 38.05 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 63.3 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.09509, allocations: 58.07 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007881/0.103, allocations: 6.488 MB / 463.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.1054, allocations: 1.313 MB / 464.8 MB, free: 104 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004505/0.1059, allocations: 27.81 kB / 464.8 MB, free: 76 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003896/0.1063, allocations: 126.9 kB / 464.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001076/0.1074, allocations: 425.9 kB / 465.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005215/0.1079, allocations: 231.6 kB / 465.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001237/0.1092, allocations: 1.114 MB / 466.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005945/0.1098, allocations: 405.8 kB / 467.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009298/0.1107, allocations: 498 kB / 467.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001086/0.1118, allocations: 0.5217 MB / 468.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002109/0.1121, allocations: 64 kB / 468.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002972/0.1124, allocations: 64 kB / 468.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004615/0.1128, allocations: 327.2 kB / 468.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007333/0.1136, allocations: 410.1 kB / 468.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00091/0.1145, allocations: 0.8994 MB / 469.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1145, allocations: 3.938 kB / 469.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1145, allocations: 0 / 469.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.314e-05/0.1146, allocations: 0 / 469.8 MB, free: 11.03 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.002351/0.1169, allocations: 1.155 MB / 471 MB, free: 9.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.117, allocations: 15.89 kB / 471 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001953/0.1172, allocations: 110.7 kB / 471.1 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002311/0.1174, allocations: 84 kB / 471.2 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.1184, allocations: 0.5727 MB / 471.8 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.1186, allocations: 124.6 kB / 471.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.1187, allocations: 63.98 kB / 472 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.1204, allocations: 0.8691 MB / 472.8 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.1204, allocations: 0 / 472.8 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.406e-05/0.1205, allocations: 28 kB / 472.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001299/0.1206, allocations: 41.28 kB / 472.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.1219, allocations: 0.6178 MB / 473.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003936/0.1258, allocations: 2.759 MB / 476.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/0.1276, allocations: 0.9028 MB / 477.2 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008422/0.1284, allocations: 314.2 kB / 477.5 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.1285, allocations: 20.23 kB / 477.5 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000762/0.1293, allocations: 338.7 kB / 477.8 MB, free: 2.652 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 3.597e-06/0.1293, allocations: 0 / 477.8 MB, free: 2.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.004553/0.1338, allocations: 1.983 MB / 479.8 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.723e-05/0.1339, allocations: 118.8 kB / 479.9 MB, free: 420 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006458/0.1346, allocations: 0.5027 MB / 480.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.687e-05/0.1347, allocations: 37.7 kB / 480.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003303/0.135, allocations: 363.7 kB / 480.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.1351, allocations: 138.1 kB / 481 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/0.1353, allocations: 122.1 kB / 481.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.1355, allocations: 374.8 kB / 481.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003708/0.1359, allocations: 225.1 kB / 481.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004561/0.1364, allocations: 390.2 kB / 482 MB, free: 14.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007861/0.1372, allocations: 0.621 MB / 482.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.1372, allocations: 4 kB / 482.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001306/0.1385, allocations: 0.8863 MB / 483.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.018e-05/0.1386, allocations: 53.67 kB / 483.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.1386, allocations: 4 kB / 483.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003013/0.1389, allocations: 97.98 kB / 483.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004069/0.1393, allocations: 99.83 kB / 483.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003078/0.1424, allocations: 3.263 MB / 487.1 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000399/0.1428, allocations: 35.97 kB / 487.1 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.64e-05/0.1429, allocations: 35.98 kB / 487.1 MB, free: 8.684 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.0004074/0.1433, allocations: 278.5 kB / 487.4 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.1434, allocations: 59.25 kB / 487.5 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/0.145, allocations: 0.7003 MB / 488.2 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.145, allocations: 11.92 kB / 488.2 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.145, allocations: 4 kB / 488.2 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1451, allocations: 0 / 488.2 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002646/0.1477, allocations: 1.543 MB / 489.7 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.1477, allocations: 0 / 489.7 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003261/0.1481, allocations: 63.91 kB / 489.8 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002885/0.1484, allocations: 97.67 kB / 489.9 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.17e-05/0.1484, allocations: 15.98 kB / 489.9 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002703/0.1511, allocations: 3.259 MB / 493.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1512, allocations: 0 / 493.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002134/0.1533, allocations: 1.067 MB / 494.2 MB, free: 1.121 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002474/0.1536, allocations: 176.3 kB / 494.4 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.1537, allocations: 31.98 kB / 494.4 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003943/0.1541, allocations: 35.95 kB / 494.5 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.563e-05/0.1542, allocations: 35.89 kB / 494.5 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.195e-05/0.1542, allocations: 19.98 kB / 494.5 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003816/0.1546, allocations: 354.8 kB / 494.9 MB, free: 476 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1546, allocations: 0 / 494.9 MB, free: 476 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006808/0.1553, allocations: 152 kB / 495 MB, free: 324 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.002276/0.1576, allocations: 1.632 MB / 496.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.1592, allocations: 0.9688 MB / 497.6 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1592, allocations: 0 / 497.6 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009071/0.1601, allocations: 0.497 MB / 498.1 MB, free: 13.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008497/0.161, allocations: 155.7 kB / 498.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008287/0.1693, allocations: 6.185 MB / 0.4926 GB, free: 6.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005819/0.1699, allocations: 0.9721 MB / 0.4936 GB, free: 5.473 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003641/0.1703, allocations: 105 kB / 0.4937 GB, free: 5.367 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002891/0.1706, allocations: 223.4 kB / 0.4939 GB, free: 5.148 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1706, allocations: 0 / 0.4939 GB, free: 5.148 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04259/0.2132, allocations: 13.04 MB / 0.5066 GB, free: 8.293 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.728/9.941, allocations: 3.938 kB / 0.5066 GB, free: 8.289 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches