Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.InverterToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",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.001875/0.001875, 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.002045/0.002045, 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.532/1.532, 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-master/package.mo): time 0.261/0.261, allocations: 38.03 MB / 329.7 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 60.83 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1228, allocations: 58.07 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.0119/0.1348, allocations: 6.55 MB / 463.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004796/0.1396, allocations: 1.66 MB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006921/0.1403, allocations: 27.88 kB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008551/0.1412, allocations: 162.7 kB / 465.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001773/0.1431, allocations: 433.9 kB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.1443, allocations: 347.4 kB / 466.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002655/0.147, allocations: 1.504 MB / 467.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007537/0.1478, allocations: 397.8 kB / 468 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001136/0.1489, allocations: 0.5918 MB / 468.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001481/0.1504, allocations: 0.6582 MB / 469.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002419/0.1507, allocations: 100 kB / 469.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002475/0.1509, allocations: 99.94 kB / 469.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004692/0.1514, allocations: 415.1 kB / 469.9 MB, free: 11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006181/0.152, allocations: 462 kB / 470.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001195/0.1532, allocations: 1.168 MB / 471.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1533, allocations: 0 / 471.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1533, allocations: 7.938 kB / 471.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.583e-05/0.1533, allocations: 0 / 471.5 MB, free: 9.371 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.003301/0.1566, allocations: 1.317 MB / 472.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.1567, allocations: 11.89 kB / 472.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002707/0.157, allocations: 118.7 kB / 472.9 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000317/0.1573, allocations: 92 kB / 473 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002208/0.1595, allocations: 0.6976 MB / 473.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000689/0.1602, allocations: 338.8 kB / 474.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002224/0.1605, allocations: 67.98 kB / 474.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002458/0.1629, allocations: 1.138 MB / 475.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.163, allocations: 7.938 kB / 475.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.39e-05/0.1631, allocations: 27.98 kB / 475.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/0.1632, allocations: 37.3 kB / 475.3 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002845/0.1661, allocations: 1.176 MB / 476.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005325/0.1714, allocations: 3.488 MB / 480 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002618/0.174, allocations: 0.9652 MB / 481 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001825/0.1759, allocations: 0.6826 MB / 481.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.48e-05/0.176, allocations: 4.562 kB / 481.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001633/0.1776, allocations: 0.685 MB / 482.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.525e-06/0.1776, allocations: 0 / 482.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.02077/0.1984, allocations: 5.67 MB / 488 MB, free: 8.426 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.1985, allocations: 89.67 kB / 488.1 MB, free: 8.316 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006/0.1991, allocations: 477.8 kB / 488.6 MB, free: 7.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001208/0.1993, allocations: 37.7 kB / 488.6 MB, free: 7.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002508/0.1995, allocations: 324.2 kB / 488.9 MB, free: 7.477 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.1997, allocations: 205.2 kB / 489.1 MB, free: 7.273 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002393/0.2, allocations: 126.2 kB / 489.2 MB, free: 7.145 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2001, allocations: 378.7 kB / 489.6 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.2013, allocations: 0.5051 MB / 490.1 MB, free: 6.262 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.2025, allocations: 0.6296 MB / 490.8 MB, free: 5.594 MB / 366.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007094/0.2096, allocations: 3.139 MB / 493.9 MB, free: 2.375 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.2097, allocations: 0 / 493.9 MB, free: 2.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007979/0.2177, allocations: 2.49 MB / 496.4 MB, free: 15.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.491e-05/0.2178, allocations: 53.12 kB / 496.4 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.2178, allocations: 4 kB / 496.4 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002595/0.2204, allocations: 1.098 MB / 497.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005165/0.2209, allocations: 107.8 kB / 497.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01635/0.2373, allocations: 6.867 MB / 0.4927 GB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009122/0.2382, allocations: 87.94 kB / 0.4928 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.2383, allocations: 47.97 kB / 0.4928 GB, free: 7.461 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005128/0.2389, allocations: 271.4 kB / 0.4931 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.239, allocations: 59.25 kB / 0.4931 GB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008385/0.2474, allocations: 2.436 MB / 0.4955 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.2474, allocations: 4 kB / 0.4955 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2474, allocations: 4 kB / 0.4955 GB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.2474, allocations: 3.984 kB / 0.4955 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009715/0.2572, allocations: 3.56 MB / 0.499 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.2572, allocations: 4 kB / 0.499 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003829/0.2576, allocations: 80.02 kB / 0.4991 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1782/0.4358, allocations: 1.083 MB / 0.5001 GB, free: 57.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002415/0.4361, allocations: 19.7 kB / 0.5001 GB, free: 57.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01735/0.4535, allocations: 6.842 MB / 0.5068 GB, free: 54.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.4535, allocations: 5.281 kB / 0.5068 GB, free: 54.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/0.4641, allocations: 3.196 MB / 0.51 GB, free: 54.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004219/0.4645, allocations: 220 kB / 0.5102 GB, free: 54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.4647, allocations: 37.22 kB / 0.5102 GB, free: 53.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008146/0.4655, allocations: 93.23 kB / 0.5103 GB, free: 53.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004768/0.466, allocations: 176.1 kB / 0.5105 GB, free: 53.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.044e-05/0.4661, allocations: 22.23 kB / 0.5105 GB, free: 53.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004678/0.4665, allocations: 322.2 kB / 0.5108 GB, free: 53.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.4665, allocations: 0 / 0.5108 GB, free: 53.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000885/0.4674, allocations: 223.4 kB / 0.511 GB, free: 53.79 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * 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 (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009708/0.4771, allocations: 3.788 MB / 0.5147 GB, free: 52.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004914/0.4821, allocations: 1.844 MB / 0.5165 GB, free: 51.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.4821, allocations: 384 / 0.5165 GB, free: 51.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00319/0.4853, allocations: 1.114 MB / 0.5176 GB, free: 51.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009904/0.4863, allocations: 155 kB / 0.5177 GB, free: 51.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02095/0.5073, allocations: 9.953 MB / 0.5275 GB, free: 44.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.5078, allocations: 0.9968 MB / 0.5284 GB, free: 43.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004554/0.5082, allocations: 129.4 kB / 0.5286 GB, free: 43.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002376/0.5085, allocations: 231.9 kB / 0.5288 GB, free: 43.01 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.5085, allocations: 3.938 kB / 0.5288 GB, free: 43.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04307/0.5516, allocations: 22.49 MB / 0.5507 GB, free: 20.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.9, allocations: 7.922 kB / 0.5507 GB, free: 20.77 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_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_InverterToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches