Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",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.001555/0.001555, allocations: 109.7 kB / 17.06 MB, free: 5.996 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.00161/0.00161, allocations: 193.4 kB / 18 MB, free: 5.074 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.508/1.508, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.188/0.188, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 71.88 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.39/0.3919, allocations: 58.05 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.00833/0.4003, allocations: 6.095 MB / 0.5096 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003359/0.4037, allocations: 1.411 MB / 0.511 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003818/0.4041, allocations: 28 kB / 0.511 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005526/0.4047, allocations: 136.8 kB / 0.5111 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009112/0.4056, allocations: 385.8 kB / 0.5115 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006023/0.4062, allocations: 194.7 kB / 0.5117 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001248/0.4075, allocations: 0.9247 MB / 0.5126 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000423/0.4079, allocations: 267.1 kB / 0.5128 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006671/0.4086, allocations: 413.1 kB / 0.5132 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007525/0.4094, allocations: 462.9 kB / 0.5137 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.51e-05/0.4095, allocations: 47.72 kB / 0.5137 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001332/0.4096, allocations: 46.69 kB / 0.5137 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000287/0.4099, allocations: 263.4 kB / 0.514 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002956/0.4102, allocations: 325.9 kB / 0.5143 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008043/0.411, allocations: 0.6721 MB / 0.515 GB, free: 444 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.411, allocations: 5.125 kB / 0.515 GB, free: 440 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.411, allocations: 3.938 kB / 0.515 GB, free: 436 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.4111, allocations: 0 / 0.515 GB, free: 436 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00172/0.4128, allocations: 0.9645 MB / 0.5159 GB, free: 15.74 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.4128, allocations: 13.39 kB / 0.5159 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001165/0.413, allocations: 88.72 kB / 0.516 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.4131, allocations: 69.44 kB / 0.5161 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.4142, allocations: 0.5651 MB / 0.5166 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.354e-05/0.4142, allocations: 45.69 kB / 0.5167 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.4144, allocations: 52.8 kB / 0.5167 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.4155, allocations: 0.6203 MB / 0.5173 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.4155, allocations: 1.125 kB / 0.5173 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.62e-05/0.4156, allocations: 20.91 kB / 0.5174 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001248/0.4157, allocations: 33.33 kB / 0.5174 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009214/0.4167, allocations: 0.5053 MB / 0.5179 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003335/0.42, allocations: 2.226 MB / 0.52 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009342/0.421, allocations: 0.4924 MB / 0.5205 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006784/0.4216, allocations: 357.9 kB / 0.5209 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.4217, allocations: 8.062 kB / 0.5209 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.4217, allocations: 37.5 kB / 0.5209 GB, free: 12.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.994e-06/0.4217, allocations: 4.938 kB / 0.5209 GB, free: 12.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003955/0.4257, allocations: 1.764 MB / 0.5226 GB, free: 12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.656e-05/0.4258, allocations: 81.98 kB / 0.5227 GB, free: 11.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006737/0.4265, allocations: 425.6 kB / 0.5231 GB, free: 11.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.648e-05/0.4266, allocations: 35.39 kB / 0.5232 GB, free: 11.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002746/0.4268, allocations: 294.4 kB / 0.5234 GB, free: 11.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.427, allocations: 172.9 kB / 0.5236 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000173/0.4272, allocations: 93.3 kB / 0.5237 GB, free: 11.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002252/0.4274, allocations: 360.3 kB / 0.524 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003263/0.4278, allocations: 186.4 kB / 0.5242 GB, free: 10.85 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004379/0.4282, allocations: 315.3 kB / 0.5245 GB, free: 10.64 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.002751/0.431, allocations: 1.24 MB / 0.5257 GB, free: 10.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.431, allocations: 4.5 kB / 0.5257 GB, free: 10.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00125/0.4322, allocations: 0.7128 MB / 0.5264 GB, free: 9.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.4323, allocations: 5.969 kB / 0.5264 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.4323, allocations: 4.344 kB / 0.5264 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004002/0.4327, allocations: 139.6 kB / 0.5266 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/0.4332, allocations: 112.4 kB / 0.5267 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003179/0.4364, allocations: 2.609 MB / 0.5292 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003641/0.4367, allocations: 26.69 kB / 0.5293 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.4368, allocations: 23.75 kB / 0.5293 GB, free: 7.762 MB / 398.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: 16 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003583/0.4371, allocations: 229.5 kB / 0.5295 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-05/0.4372, allocations: 52.58 kB / 0.5295 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001194/0.4384, allocations: 0.6515 MB / 0.5302 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.4385, allocations: 6.094 kB / 0.5302 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.4385, allocations: 5.625 kB / 0.5302 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/0.4385, allocations: 8.109 kB / 0.5302 GB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.4409, allocations: 1.381 MB / 0.5315 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.4409, allocations: 1.219 kB / 0.5315 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003765/0.4413, allocations: 71.72 kB / 0.5316 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004634/0.4418, allocations: 150.1 kB / 0.5318 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.83e-05/0.4419, allocations: 15.3 kB / 0.5318 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003246/0.4451, allocations: 2.625 MB / 0.5343 GB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4451, allocations: 5.188 kB / 0.5343 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.4467, allocations: 0.9931 MB / 0.5353 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/0.447, allocations: 125.7 kB / 0.5354 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.758e-05/0.447, allocations: 16.44 kB / 0.5354 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.4473, allocations: 22.83 kB / 0.5355 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.4474, allocations: 37.8 kB / 0.5355 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.826e-05/0.4475, allocations: 14.66 kB / 0.5355 GB, free: 3.531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004031/0.4479, allocations: 287.8 kB / 0.5358 GB, free: 3.359 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4479, allocations: 5.25 kB / 0.5358 GB, free: 3.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007676/0.4486, allocations: 143.4 kB / 0.5359 GB, free: 3.34 MB / 398.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001825/0.4505, allocations: 1.531 MB / 0.5374 GB, free: 2.191 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.4518, allocations: 0.6563 MB / 0.5381 GB, free: 1.828 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4518, allocations: 0 / 0.5381 GB, free: 1.828 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007733/0.4526, allocations: 452.7 kB / 0.5385 GB, free: 1.543 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008204/0.4534, allocations: 136.4 kB / 0.5386 GB, free: 1.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007589/0.461, allocations: 5.139 MB / 0.5437 GB, free: 13.97 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000688/0.4617, allocations: 0.9273 MB / 0.5446 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004192/0.4621, allocations: 101.2 kB / 0.5447 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003192/0.4625, allocations: 198.2 kB / 0.5448 GB, free: 12.96 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4625, allocations: 4 kB / 0.5448 GB, free: 12.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04318/0.5057, allocations: 11.92 MB / 0.5565 GB, free: 1.492 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/11.03, allocations: 12.3 kB / 0.5565 GB, free: 1.484 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_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_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches