Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.001739/0.001739, allocations: 107.3 kB / 17.06 MB, free: 6.016 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.001926/0.001926, allocations: 192 kB / 18 MB, free: 5.102 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.479/1.479, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1861/0.1861, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 63.88 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3436, allocations: 58.06 MB / 0.5036 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.006744/0.3504, allocations: 6.477 MB / 0.51 GB, free: 2.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002899/0.3533, allocations: 1.873 MB / 0.5118 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003479/0.3537, allocations: 33.66 kB / 0.5118 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00118/0.3548, allocations: 439.7 kB / 0.5122 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000756/0.3556, allocations: 425.6 kB / 0.5126 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008747/0.3565, allocations: 343.4 kB / 0.513 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.3578, allocations: 1.033 MB / 0.514 GB, free: 496 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007464/0.3586, allocations: 0.4942 MB / 0.5145 GB, free: 292 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007857/0.3594, allocations: 460.5 kB / 0.5149 GB, free: 84 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009433/0.3603, allocations: 0.5701 MB / 0.5155 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.3605, allocations: 66.62 kB / 0.5155 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006752/0.3611, allocations: 256.2 kB / 0.5158 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004568/0.3616, allocations: 371.6 kB / 0.5161 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005478/0.3622, allocations: 433.6 kB / 0.5165 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001697/0.3639, allocations: 1.043 MB / 0.5175 GB, free: 15.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3639, allocations: 0.5312 kB / 0.5175 GB, free: 15.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3639, allocations: 0 / 0.5175 GB, free: 15.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.803e-05/0.3639, allocations: 0.6562 kB / 0.5175 GB, free: 15.04 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002629/0.3666, allocations: 1.139 MB / 0.5187 GB, free: 14.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.3666, allocations: 14.52 kB / 0.5187 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001768/0.3668, allocations: 124.1 kB / 0.5188 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007768/0.3676, allocations: 130.3 kB / 0.5189 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.3687, allocations: 0.6144 MB / 0.5195 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.226e-05/0.3688, allocations: 48.34 kB / 0.5196 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001773/0.369, allocations: 79.48 kB / 0.5196 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/0.3706, allocations: 1.009 MB / 0.5206 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.336e-05/0.3707, allocations: 10.95 kB / 0.5206 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-05/0.3708, allocations: 26.16 kB / 0.5207 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002105/0.371, allocations: 71.06 kB / 0.5207 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.3727, allocations: 0.977 MB / 0.5217 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005204/0.3779, allocations: 3.267 MB / 0.5249 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.3791, allocations: 0.6944 MB / 0.5255 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006784/0.3797, allocations: 421.3 kB / 0.526 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.945e-05/0.3798, allocations: 16.69 kB / 0.526 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.3799, allocations: 42.72 kB / 0.526 GB, free: 10.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 2.755e-06/0.3799, allocations: 0 / 0.526 GB, free: 10.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=75): time 0.004553/0.3844, allocations: 2.451 MB / 0.5284 GB, free: 9.203 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.562e-05/0.3845, allocations: 89.98 kB / 0.5285 GB, free: 9.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005749/0.3851, allocations: 443.7 kB / 0.5289 GB, free: 8.895 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.541e-05/0.3852, allocations: 36.08 kB / 0.5289 GB, free: 8.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000327/0.3855, allocations: 359.9 kB / 0.5293 GB, free: 8.566 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/0.3858, allocations: 277.6 kB / 0.5296 GB, free: 8.348 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002796/0.3861, allocations: 150.5 kB / 0.5297 GB, free: 8.273 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002207/0.3863, allocations: 378.8 kB / 0.5301 GB, free: 7.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005805/0.3869, allocations: 338.4 kB / 0.5304 GB, free: 7.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007609/0.3877, allocations: 0.5227 MB / 0.5309 GB, free: 7.492 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005909/0.3936, allocations: 2.238 MB / 0.5331 GB, free: 6.219 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.371e-05/0.3937, allocations: 2.406 kB / 0.5331 GB, free: 6.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00201/0.3957, allocations: 1.101 MB / 0.5342 GB, free: 5.613 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.3957, allocations: 11.02 kB / 0.5342 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.3957, allocations: 5.719 kB / 0.5342 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/0.3959, allocations: 42.91 kB / 0.5342 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007747/0.3967, allocations: 188.4 kB / 0.5344 GB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001643/0.3983, allocations: 1.504 MB / 0.5359 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00068/0.399, allocations: 36.34 kB / 0.5359 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.569e-05/0.3991, allocations: 31.31 kB / 0.5359 GB, free: 3.996 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005523/0.3997, allocations: 281.8 kB / 0.5362 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001684/0.3999, allocations: 67.41 kB / 0.5363 GB, free: 3.742 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.4016, allocations: 0.9719 MB / 0.5372 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-05/0.4017, allocations: 12.97 kB / 0.5372 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.4017, allocations: 9.109 kB / 0.5372 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.537e-06/0.4017, allocations: 1.156 kB / 0.5372 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003681/0.4054, allocations: 1.999 MB / 0.5392 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.4054, allocations: 8.25 kB / 0.5392 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007031/0.4061, allocations: 155.1 kB / 0.5393 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001458/0.4063, allocations: 34.38 kB / 0.5394 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.741e-05/0.4063, allocations: 26.61 kB / 0.5394 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001498/0.4078, allocations: 1.496 MB / 0.5409 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.4079, allocations: 6.438 kB / 0.5409 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/0.4105, allocations: 1.537 MB / 0.5424 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003241/0.4108, allocations: 143.5 kB / 0.5425 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.4109, allocations: 21.95 kB / 0.5425 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000406/0.4113, allocations: 34.31 kB / 0.5426 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.4115, allocations: 61.72 kB / 0.5426 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.325e-05/0.4115, allocations: 29.02 kB / 0.5426 GB, free: 14.97 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004978/0.412, allocations: 298.5 kB / 0.5429 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4121, allocations: 0 / 0.5429 GB, free: 14.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008913/0.4129, allocations: 186.5 kB / 0.5431 GB, free: 14.76 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002978/0.4159, allocations: 2.131 MB / 0.5452 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.4178, allocations: 0.9651 MB / 0.5461 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4178, allocations: 1.438 kB / 0.5461 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007735/0.4186, allocations: 0.5258 MB / 0.5466 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.4196, allocations: 144.8 kB / 0.5468 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.4302, allocations: 7.071 MB / 0.5537 GB, free: 3.695 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/0.4313, allocations: 1.02 MB / 0.5547 GB, free: 2.641 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005843/0.4319, allocations: 201.4 kB / 0.5549 GB, free: 2.441 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/0.4323, allocations: 271.3 kB / 0.5551 GB, free: 2.176 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4323, allocations: 0 / 0.5551 GB, free: 2.176 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05937/0.4917, allocations: 14.61 MB / 0.5694 GB, free: 3.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.17, allocations: 5.391 kB / 0.5694 GB, free: 3.766 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.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_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches