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.001551/0.001551, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001803/0.001803, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.425/1.425, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1821/0.1821, allocations: 38.05 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001663, allocations: 71.89 kB / 457.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.4039, allocations: 58.05 MB / 0.5036 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007049/0.411, allocations: 6.561 MB / 0.51 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002894/0.4139, allocations: 1.657 MB / 0.5116 GB, free: 1.777 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003586/0.4143, allocations: 33.06 kB / 0.5117 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004723/0.4148, allocations: 153.5 kB / 0.5118 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008503/0.4157, allocations: 444.7 kB / 0.5122 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007357/0.4164, allocations: 356.3 kB / 0.5126 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001694/0.4181, allocations: 1.502 MB / 0.5141 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004667/0.4186, allocations: 404.5 kB / 0.5144 GB, free: 440 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009621/0.4196, allocations: 0.6161 MB / 0.515 GB, free: 164 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/0.4206, allocations: 0.649 MB / 0.5157 GB, free: 15.92 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001968/0.4208, allocations: 98.62 kB / 0.5158 GB, free: 15.92 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002363/0.4211, allocations: 97.72 kB / 0.5159 GB, free: 15.92 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006321/0.4217, allocations: 422.7 kB / 0.5163 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006653/0.4224, allocations: 470.7 kB / 0.5167 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001959/0.4244, allocations: 1.181 MB / 0.5179 GB, free: 15.05 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.4244, allocations: 0 / 0.5179 GB, free: 15.05 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4244, allocations: 0 / 0.5179 GB, free: 15.05 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.615e-05/0.4244, allocations: 5.562 kB / 0.5179 GB, free: 15.05 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.003425/0.4279, allocations: 1.335 MB / 0.5192 GB, free: 14.2 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.4279, allocations: 13.23 kB / 0.5192 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00018/0.4281, allocations: 117.2 kB / 0.5193 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002074/0.4283, allocations: 97.12 kB / 0.5194 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001721/0.43, allocations: 0.7384 MB / 0.5201 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004755/0.4305, allocations: 344.3 kB / 0.5204 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/0.4307, allocations: 69.89 kB / 0.5205 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002629/0.4333, allocations: 1.136 MB / 0.5216 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.4334, allocations: 4.969 kB / 0.5216 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.648e-05/0.4335, allocations: 27.45 kB / 0.5217 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001347/0.4336, allocations: 43.34 kB / 0.5217 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003053/0.4367, allocations: 1.174 MB / 0.5228 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006405/0.4431, allocations: 3.488 MB / 0.5262 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002624/0.4457, allocations: 0.9545 MB / 0.5272 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/0.4475, allocations: 0.6864 MB / 0.5278 GB, free: 9.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.831e-05/0.4476, allocations: 7.156 kB / 0.5279 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001622/0.4492, allocations: 0.6891 MB / 0.5285 GB, free: 9.324 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 3.326e-06/0.4492, allocations: 0 / 0.5285 GB, free: 9.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.02021/0.4695, allocations: 5.679 MB / 0.5341 GB, free: 6.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.4695, allocations: 85.89 kB / 0.5342 GB, free: 6.277 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005658/0.4701, allocations: 480.7 kB / 0.5346 GB, free: 5.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.69e-05/0.4702, allocations: 42.92 kB / 0.5347 GB, free: 5.941 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002434/0.4705, allocations: 331.2 kB / 0.535 GB, free: 5.648 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/0.4707, allocations: 222.1 kB / 0.5352 GB, free: 5.457 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002482/0.4709, allocations: 124.2 kB / 0.5353 GB, free: 5.387 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.4711, allocations: 370.6 kB / 0.5357 GB, free: 5.031 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.4723, allocations: 0.5076 MB / 0.5361 GB, free: 4.781 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.4735, allocations: 0.6274 MB / 0.5368 GB, free: 4.387 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.007323/0.4808, allocations: 3.133 MB / 0.5398 GB, free: 2.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.4808, allocations: 0 / 0.5398 GB, free: 2.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007636/0.4885, allocations: 2.501 MB / 0.5423 GB, free: 496 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.077e-05/0.4886, allocations: 49.69 kB / 0.5423 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.4886, allocations: 4 kB / 0.5423 GB, free: 436 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002383/0.491, allocations: 1.09 MB / 0.5434 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004677/0.4914, allocations: 111.8 kB / 0.5435 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01572/0.5072, allocations: 6.848 MB / 0.5502 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000884/0.5081, allocations: 83.95 kB / 0.5503 GB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.892e-05/0.5082, allocations: 47.91 kB / 0.5503 GB, free: 8.105 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.0005205/0.5087, allocations: 279.5 kB / 0.5506 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.5089, allocations: 63.7 kB / 0.5506 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007742/0.5166, allocations: 2.429 MB / 0.553 GB, free: 5.312 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.5167, allocations: 12 kB / 0.553 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.5167, allocations: 4 kB / 0.553 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.5167, allocations: 3.984 kB / 0.553 GB, free: 5.293 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009655/0.5263, allocations: 3.556 MB / 0.5565 GB, free: 1.652 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.046e-06/0.5264, allocations: 0 / 0.5565 GB, free: 1.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003786/0.5268, allocations: 79.89 kB / 0.5566 GB, free: 1.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002435/0.5292, allocations: 1.094 MB / 0.5576 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.802e-05/0.5293, allocations: 15.98 kB / 0.5576 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01556/0.5449, allocations: 6.84 MB / 0.5643 GB, free: 9.48 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.5449, allocations: 4 kB / 0.5643 GB, free: 9.477 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009745/0.5547, allocations: 3.2 MB / 0.5675 GB, free: 6.234 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006262/0.5553, allocations: 228.7 kB / 0.5677 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.5555, allocations: 31.98 kB / 0.5677 GB, free: 5.961 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007336/0.5562, allocations: 103.8 kB / 0.5678 GB, free: 5.859 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004381/0.5567, allocations: 168.2 kB / 0.568 GB, free: 5.695 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.369e-05/0.5567, allocations: 19.98 kB / 0.568 GB, free: 5.676 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000421/0.5572, allocations: 322.9 kB / 0.5683 GB, free: 5.363 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5572, allocations: 0 / 0.5683 GB, free: 5.363 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009928/0.5582, allocations: 232 kB / 0.5685 GB, free: 5.137 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.01014/0.5683, allocations: 3.768 MB / 0.5722 GB, free: 1.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004795/0.5731, allocations: 1.735 MB / 0.5739 GB, free: 15.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.5732, allocations: 0 / 0.5739 GB, free: 15.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003399/0.5766, allocations: 1.115 MB / 0.575 GB, free: 14.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.5777, allocations: 156.2 kB / 0.5751 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02441/0.6022, allocations: 9.882 MB / 0.5848 GB, free: 4.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007088/0.6029, allocations: 1.004 MB / 0.5858 GB, free: 3.145 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004756/0.6034, allocations: 129.1 kB / 0.5859 GB, free: 3.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003088/0.6037, allocations: 231.4 kB / 0.5861 GB, free: 2.793 MB / 446.1 MB Notification: Performance of SimCode: time 4.81e-07/0.6037, allocations: 0 / 0.5861 GB, free: 2.793 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05338/0.6571, allocations: 22.73 MB / 0.6083 GB, free: 12.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.88, allocations: 7.938 kB / 0.6083 GB, free: 12.29 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