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.00108/0.00108, allocations: 114.2 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.001201/0.001201, allocations: 194.9 kB / 18.01 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.397/1.397, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1784/0.1784, allocations: 38.04 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 59.91 kB / 457.7 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3729, allocations: 58.06 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007175/0.3801, allocations: 6.087 MB / 0.5096 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.3826, allocations: 1.415 MB / 0.5109 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003335/0.3829, allocations: 27.03 kB / 0.511 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005202/0.3835, allocations: 134.9 kB / 0.5111 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008935/0.3844, allocations: 390 kB / 0.5115 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005566/0.385, allocations: 195.9 kB / 0.5117 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001012/0.386, allocations: 0.9227 MB / 0.5126 GB, free: 1.434 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003922/0.3864, allocations: 271.2 kB / 0.5128 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006473/0.3871, allocations: 415.9 kB / 0.5132 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007193/0.3878, allocations: 471.8 kB / 0.5137 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.999e-05/0.3879, allocations: 47.53 kB / 0.5137 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.388, allocations: 47 kB / 0.5138 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002945/0.3883, allocations: 262.3 kB / 0.514 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003177/0.3886, allocations: 327.2 kB / 0.5143 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008658/0.3895, allocations: 0.6764 MB / 0.515 GB, free: 432 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3895, allocations: 0 / 0.515 GB, free: 432 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.3895, allocations: 0 / 0.515 GB, free: 432 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.3896, allocations: 0.9688 kB / 0.515 GB, free: 432 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.001855/0.3914, allocations: 0.9647 MB / 0.5159 GB, free: 15.74 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.3915, allocations: 16.52 kB / 0.5159 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001243/0.3916, allocations: 88.7 kB / 0.516 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.3917, allocations: 75.09 kB / 0.5161 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/0.3929, allocations: 0.5603 MB / 0.5166 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.234e-05/0.393, allocations: 40.84 kB / 0.5167 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.3931, allocations: 53.39 kB / 0.5167 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.3943, allocations: 0.624 MB / 0.5173 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.3943, allocations: 1.062 kB / 0.5173 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.455e-05/0.3944, allocations: 16.47 kB / 0.5174 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001349/0.3945, allocations: 34.2 kB / 0.5174 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009656/0.3955, allocations: 0.5095 MB / 0.5179 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003793/0.3993, allocations: 2.224 MB / 0.5201 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.4004, allocations: 0.4929 MB / 0.5205 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007427/0.4011, allocations: 355.2 kB / 0.5209 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.4012, allocations: 4.5 kB / 0.5209 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.4012, allocations: 39.39 kB / 0.5209 GB, free: 12.94 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.753e-06/0.4012, allocations: 0 / 0.5209 GB, free: 12.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003663/0.4049, allocations: 1.769 MB / 0.5227 GB, free: 12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.405, allocations: 83.45 kB / 0.5227 GB, free: 11.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000522/0.4055, allocations: 422 kB / 0.5231 GB, free: 11.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/0.4055, allocations: 34.86 kB / 0.5232 GB, free: 11.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/0.4058, allocations: 297.5 kB / 0.5234 GB, free: 11.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.406, allocations: 172.6 kB / 0.5236 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.4061, allocations: 94.77 kB / 0.5237 GB, free: 11.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.4063, allocations: 359.7 kB / 0.524 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003203/0.4066, allocations: 187.9 kB / 0.5242 GB, free: 10.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003883/0.407, allocations: 313.8 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.002735/0.4097, allocations: 1.238 MB / 0.5257 GB, free: 10.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.4097, allocations: 5.156 kB / 0.5257 GB, free: 10.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001402/0.4112, allocations: 0.714 MB / 0.5264 GB, free: 9.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.4112, allocations: 5.875 kB / 0.5264 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.4112, allocations: 8.906 kB / 0.5265 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000421/0.4116, allocations: 141.6 kB / 0.5266 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004724/0.4121, allocations: 105 kB / 0.5267 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003061/0.4152, allocations: 2.622 MB / 0.5292 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003983/0.4156, allocations: 25.86 kB / 0.5293 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-05/0.4157, allocations: 23.91 kB / 0.5293 GB, free: 7.746 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.0003492/0.416, allocations: 220.2 kB / 0.5295 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.529e-05/0.4161, allocations: 58.08 kB / 0.5296 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.4174, allocations: 0.6513 MB / 0.5302 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.4174, allocations: 6.312 kB / 0.5302 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.4174, allocations: 2.219 kB / 0.5302 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.4174, allocations: 6.516 kB / 0.5302 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002444/0.4199, allocations: 1.378 MB / 0.5316 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.4199, allocations: 5.438 kB / 0.5316 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003568/0.4202, allocations: 71.02 kB / 0.5316 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004479/0.4207, allocations: 150.9 kB / 0.5318 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.354e-05/0.4207, allocations: 10.34 kB / 0.5318 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002977/0.4237, allocations: 2.625 MB / 0.5343 GB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.4238, allocations: 2.766 kB / 0.5343 GB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.4253, allocations: 0.9921 MB / 0.5353 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/0.4255, allocations: 125.1 kB / 0.5354 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.371e-05/0.4256, allocations: 17 kB / 0.5355 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.4259, allocations: 30.98 kB / 0.5355 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.956e-05/0.426, allocations: 37.64 kB / 0.5355 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.426, allocations: 14.94 kB / 0.5355 GB, free: 3.527 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003385/0.4263, allocations: 287.8 kB / 0.5358 GB, free: 3.355 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4263, allocations: 1.531 kB / 0.5358 GB, free: 3.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007202/0.4271, allocations: 147.4 kB / 0.5359 GB, free: 3.336 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.001816/0.4289, allocations: 1.531 MB / 0.5374 GB, free: 2.188 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.4302, allocations: 0.6558 MB / 0.5381 GB, free: 1.824 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4302, allocations: 1.438 kB / 0.5381 GB, free: 1.824 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007155/0.4309, allocations: 447.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.000817/0.4318, allocations: 137.5 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.007835/0.4396, allocations: 5.14 MB / 0.5437 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006508/0.4403, allocations: 0.9245 MB / 0.5446 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004295/0.4407, allocations: 108.1 kB / 0.5447 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003041/0.4411, allocations: 201.5 kB / 0.5449 GB, free: 12.95 MB / 414.1 MB Notification: Performance of SimCode: time 6.72e-07/0.4411, allocations: 0 / 0.5449 GB, free: 12.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03496/0.476, allocations: 11.9 MB / 0.5565 GB, free: 1.512 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.07/10.54, allocations: 9.234 kB / 0.5565 GB, free: 1.508 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