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.001411/0.001412, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001295/0.001296, allocations: 193.4 kB / 18 MB, free: 5.172 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.509/1.509, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1872/0.1872, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 59.91 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3841/0.386, allocations: 58.07 MB / 0.5036 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.00702/0.3931, allocations: 6.548 MB / 0.51 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003026/0.3961, allocations: 1.647 MB / 0.5116 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000511/0.3967, allocations: 29.84 kB / 0.5117 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005763/0.3973, allocations: 157.8 kB / 0.5118 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001075/0.3984, allocations: 442.3 kB / 0.5122 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009193/0.3993, allocations: 352.1 kB / 0.5126 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002458/0.4018, allocations: 1.5 MB / 0.514 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006923/0.4025, allocations: 410.9 kB / 0.5144 GB, free: 412 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/0.404, allocations: 0.5969 MB / 0.515 GB, free: 144 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001484/0.4055, allocations: 0.6525 MB / 0.5156 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002216/0.4057, allocations: 97.19 kB / 0.5157 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002927/0.406, allocations: 99.59 kB / 0.5158 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007669/0.4068, allocations: 412.3 kB / 0.5162 GB, free: 15.74 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008626/0.4077, allocations: 474.5 kB / 0.5167 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00266/0.4103, allocations: 1.189 MB / 0.5178 GB, free: 15.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.097e-05/0.4104, allocations: 0 / 0.5178 GB, free: 15.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.098e-06/0.4104, allocations: 0 / 0.5178 GB, free: 15.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.876e-05/0.4104, allocations: 0 / 0.5178 GB, free: 15.02 MB / 398.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.004374/0.4148, allocations: 1.334 MB / 0.5191 GB, free: 14.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.4149, allocations: 9.844 kB / 0.5192 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002592/0.4152, allocations: 121.9 kB / 0.5193 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003087/0.4155, allocations: 97.66 kB / 0.5194 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/0.4175, allocations: 0.7386 MB / 0.5201 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005659/0.4181, allocations: 340.9 kB / 0.5204 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.4183, allocations: 65.48 kB / 0.5205 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003146/0.4214, allocations: 1.14 MB / 0.5216 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.4215, allocations: 1.094 kB / 0.5216 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.315e-05/0.4216, allocations: 26.59 kB / 0.5216 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001493/0.4217, allocations: 38.3 kB / 0.5216 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00308/0.4248, allocations: 1.179 MB / 0.5228 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005971/0.4308, allocations: 3.493 MB / 0.5262 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002714/0.4335, allocations: 0.9581 MB / 0.5271 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/0.4354, allocations: 0.6819 MB / 0.5278 GB, free: 9.738 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.818e-05/0.4355, allocations: 10.67 kB / 0.5278 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001617/0.4371, allocations: 0.6858 MB / 0.5285 GB, free: 9.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.505e-06/0.4371, allocations: 0 / 0.5285 GB, free: 9.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.02284/0.46, allocations: 5.678 MB / 0.534 GB, free: 6.359 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.4601, allocations: 91.67 kB / 0.5341 GB, free: 6.262 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009469/0.4611, allocations: 475.2 kB / 0.5346 GB, free: 5.973 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002595/0.4614, allocations: 43.33 kB / 0.5346 GB, free: 5.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004241/0.4618, allocations: 327.1 kB / 0.5349 GB, free: 5.641 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003222/0.4621, allocations: 217.3 kB / 0.5351 GB, free: 5.453 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002975/0.4624, allocations: 129.8 kB / 0.5353 GB, free: 5.379 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002188/0.4627, allocations: 373.4 kB / 0.5356 GB, free: 5.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.464, allocations: 0.5052 MB / 0.5361 GB, free: 4.773 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001312/0.4653, allocations: 0.6263 MB / 0.5367 GB, free: 4.379 MB / 398.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.007418/0.4727, allocations: 3.139 MB / 0.5398 GB, free: 2.754 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.4727, allocations: 1.094 kB / 0.5398 GB, free: 2.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008383/0.4811, allocations: 2.502 MB / 0.5422 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.546e-05/0.4813, allocations: 53.62 kB / 0.5423 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.4813, allocations: 224 / 0.5423 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002685/0.484, allocations: 1.09 MB / 0.5434 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005298/0.4845, allocations: 111.8 kB / 0.5435 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01762/0.5021, allocations: 6.854 MB / 0.5502 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.5033, allocations: 83.97 kB / 0.5502 GB, free: 8.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.5034, allocations: 47.91 kB / 0.5503 GB, free: 8.184 MB / 414.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.000568/0.504, allocations: 279.5 kB / 0.5505 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.5041, allocations: 63.58 kB / 0.5506 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008731/0.5129, allocations: 2.429 MB / 0.553 GB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.95e-05/0.5129, allocations: 11.98 kB / 0.553 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.5129, allocations: 0 / 0.553 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.777e-05/0.513, allocations: 3.984 kB / 0.553 GB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.5238, allocations: 3.556 MB / 0.5565 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/0.5239, allocations: 4 kB / 0.5565 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004267/0.5243, allocations: 75.89 kB / 0.5565 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002738/0.5271, allocations: 1.086 MB / 0.5576 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.5272, allocations: 23.98 kB / 0.5576 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01772/0.5449, allocations: 6.839 MB / 0.5643 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.545, allocations: 0 / 0.5643 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/0.5557, allocations: 3.208 MB / 0.5674 GB, free: 6.312 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005505/0.5563, allocations: 224.7 kB / 0.5676 GB, free: 6.074 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002285/0.5565, allocations: 31.98 kB / 0.5677 GB, free: 6.043 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008678/0.5574, allocations: 107.7 kB / 0.5678 GB, free: 5.938 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004593/0.5579, allocations: 168.2 kB / 0.5679 GB, free: 5.773 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.611e-05/0.558, allocations: 23.98 kB / 0.568 GB, free: 5.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004859/0.5585, allocations: 322.9 kB / 0.5683 GB, free: 5.438 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5585, allocations: 0 / 0.5683 GB, free: 5.438 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001194/0.5597, allocations: 220 kB / 0.5685 GB, free: 5.223 MB / 430.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.01103/0.5707, allocations: 3.776 MB / 0.5722 GB, free: 1.398 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005267/0.576, allocations: 1.731 MB / 0.5739 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/0.576, allocations: 384 / 0.5739 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003601/0.5797, allocations: 1.114 MB / 0.5749 GB, free: 14.51 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.5808, allocations: 162.6 kB / 0.5751 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02532/0.6062, allocations: 9.874 MB / 0.5847 GB, free: 4.266 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008885/0.6071, allocations: 0.9967 MB / 0.5857 GB, free: 3.238 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000553/0.6077, allocations: 129.1 kB / 0.5858 GB, free: 3.113 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004384/0.6081, allocations: 231.4 kB / 0.5861 GB, free: 2.887 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6081, allocations: 0 / 0.5861 GB, free: 2.887 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05882/0.667, allocations: 22.73 MB / 0.6083 GB, free: 12.39 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/13.31, allocations: 22.86 kB / 0.6083 GB, free: 12.37 MB / 478.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