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.001179/0.001179, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001195/0.001195, allocations: 191.5 kB / 17.85 MB, free: 5.168 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.359/1.359, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1785/0.1785, allocations: 38.04 MB / 329.7 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.59 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09281/0.09409, allocations: 58.07 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007427/0.1016, allocations: 6.476 MB / 463.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003382/0.105, allocations: 1.889 MB / 465.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005061/0.1055, allocations: 23.88 kB / 465.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.1068, allocations: 447.6 kB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001028/0.1079, allocations: 413.8 kB / 466.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.1089, allocations: 347.3 kB / 466.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001211/0.1101, allocations: 1.032 MB / 467.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007907/0.1109, allocations: 0.4965 MB / 468.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008696/0.1118, allocations: 454.2 kB / 468.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.1129, allocations: 0.5724 MB / 469.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000174/0.113, allocations: 68 kB / 469.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006365/0.1137, allocations: 267.6 kB / 469.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003782/0.1141, allocations: 375 kB / 469.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005533/0.1146, allocations: 429.8 kB / 470.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.1157, allocations: 1.02 MB / 471.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1157, allocations: 0 / 471.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1157, allocations: 0 / 471.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.789e-05/0.1158, allocations: 8 kB / 471.2 MB, free: 9.645 MB / 350.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.002424/0.1182, allocations: 1.12 MB / 472.3 MB, free: 8.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1183, allocations: 11.89 kB / 472.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001548/0.1184, allocations: 122.8 kB / 472.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007609/0.1192, allocations: 131.7 kB / 472.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009899/0.1202, allocations: 0.5728 MB / 473.2 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.112e-05/0.1202, allocations: 45.69 kB / 473.2 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/0.1204, allocations: 83.91 kB / 473.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.1219, allocations: 1.002 MB / 474.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.1219, allocations: 4 kB / 474.3 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.767e-05/0.122, allocations: 27.94 kB / 474.3 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002101/0.1222, allocations: 69.95 kB / 474.4 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/0.1237, allocations: 0.9758 MB / 475.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004874/0.1286, allocations: 3.275 MB / 478.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.1297, allocations: 0.6893 MB / 479.3 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006127/0.1303, allocations: 427.4 kB / 479.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.008e-05/0.1304, allocations: 8.547 kB / 479.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/0.1305, allocations: 47.12 kB / 479.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.665e-06/0.1305, allocations: 0 / 479.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.00399/0.1345, allocations: 2.427 MB / 482.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.1345, allocations: 85.67 kB / 482.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005311/0.1351, allocations: 449.8 kB / 482.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.198e-05/0.1352, allocations: 37.7 kB / 482.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002688/0.1354, allocations: 359.5 kB / 483.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/0.1357, allocations: 260.2 kB / 483.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/0.1359, allocations: 146.6 kB / 483.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1361, allocations: 378.7 kB / 483.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004969/0.1366, allocations: 337.8 kB / 484.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006026/0.1372, allocations: 0.5225 MB / 484.8 MB, free: 11.58 MB / 366.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.005109/0.1423, allocations: 2.253 MB / 487 MB, free: 9.234 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.1423, allocations: 0 / 487 MB, free: 9.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001682/0.144, allocations: 1.102 MB / 488.1 MB, free: 8.105 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.144, allocations: 8 kB / 488.1 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.144, allocations: 4 kB / 488.1 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001481/0.1442, allocations: 44.78 kB / 488.2 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007596/0.145, allocations: 191.9 kB / 488.4 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.1462, allocations: 1.5 MB / 489.9 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004765/0.1467, allocations: 43.86 kB / 489.9 MB, free: 6.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.509e-05/0.1468, allocations: 31.94 kB / 489.9 MB, free: 6.141 MB / 366.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.0004253/0.1472, allocations: 283.5 kB / 490.2 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.1473, allocations: 63.23 kB / 490.3 MB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001461/0.1488, allocations: 0.9701 MB / 491.3 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.567e-05/0.1489, allocations: 15.98 kB / 491.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.1489, allocations: 7.938 kB / 491.3 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.1489, allocations: 0 / 491.3 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003226/0.1521, allocations: 2.005 MB / 493.3 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.1521, allocations: 8 kB / 493.3 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000676/0.1528, allocations: 143.8 kB / 493.4 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001024/0.1529, allocations: 36.84 kB / 493.5 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.332e-05/0.153, allocations: 23.98 kB / 493.5 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.154, allocations: 1.5 MB / 495 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.154, allocations: 12.14 kB / 495 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001896/0.1559, allocations: 1.532 MB / 496.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.1561, allocations: 132.4 kB / 496.7 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.201e-05/0.1562, allocations: 24.05 kB / 496.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003734/0.1566, allocations: 35.97 kB / 496.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.841e-05/0.1567, allocations: 56.38 kB / 496.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.623e-05/0.1567, allocations: 27.98 kB / 496.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003037/0.157, allocations: 299.1 kB / 497.1 MB, free: 14.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.157, allocations: 0 / 497.1 MB, free: 14.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006716/0.1577, allocations: 187.9 kB / 497.3 MB, free: 14.37 MB / 382.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.002244/0.16, allocations: 2.13 MB / 499.4 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001802/0.1618, allocations: 1.173 MB / 0.4889 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.1618, allocations: 4 kB / 0.4889 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006636/0.1625, allocations: 0.517 MB / 0.4894 GB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008197/0.1633, allocations: 150.2 kB / 0.4895 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00858/0.1719, allocations: 7.151 MB / 0.4965 GB, free: 2.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005938/0.1725, allocations: 1.013 MB / 0.4975 GB, free: 1.691 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000596/0.1731, allocations: 209.3 kB / 0.4977 GB, free: 1.484 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003919/0.1735, allocations: 279.3 kB / 0.4979 GB, free: 1.211 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1735, allocations: 0 / 0.4979 GB, free: 1.211 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04208/0.2156, allocations: 14.29 MB / 0.5119 GB, free: 3.105 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.4/9.616, allocations: 19.84 kB / 0.5119 GB, free: 3.09 MB / 398.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