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: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008542/0.000854, allocations: 90.25 kB / 16.65 MB, free: 6.535 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.0012/0.0012, allocations: 176.9 kB / 17.56 MB, free: 6.18 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.325/1.325, allocations: 223.2 MB / 241.6 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1811/0.1811, allocations: 38.09 MB / 330.8 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002873, allocations: 8 kB / 400.7 MB, free: 34.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09311/0.09341, allocations: 59.17 MB / 459.9 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007494/0.1009, allocations: 7.294 MB / 467.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003714/0.1047, allocations: 2.236 MB / 469.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004747/0.1052, allocations: 51.69 kB / 469.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004207/0.1056, allocations: 131 kB / 469.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007421/0.1064, allocations: 390.3 kB / 470 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007518/0.1071, allocations: 315.5 kB / 470.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.1084, allocations: 1.504 MB / 471.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009524/0.1094, allocations: 0.6843 MB / 472.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005037/0.1099, allocations: 370.2 kB / 472.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006991/0.1106, allocations: 0.5723 MB / 473.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.184e-05/0.1107, allocations: 36 kB / 473.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000504/0.1112, allocations: 251.5 kB / 473.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002862/0.1115, allocations: 335 kB / 474 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004355/0.1119, allocations: 403.6 kB / 474.4 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008882/0.1128, allocations: 0.9926 MB / 475.4 MB, free: 7.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1128, allocations: 0 / 475.4 MB, free: 7.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1128, allocations: 0 / 475.4 MB, free: 7.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.1129, allocations: 4 kB / 475.4 MB, free: 7.484 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.001804/0.1147, allocations: 0.9844 MB / 476.4 MB, free: 6.445 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.1147, allocations: 8.031 kB / 476.4 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007251/0.1154, allocations: 127.8 kB / 476.5 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009149/0.1164, allocations: 0.565 MB / 477.1 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/0.1164, allocations: 57.62 kB / 477.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.1166, allocations: 72.11 kB / 477.2 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.118, allocations: 1.014 MB / 478.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.1181, allocations: 0 / 478.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.329e-05/0.1182, allocations: 31.98 kB / 478.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002086/0.1184, allocations: 69.95 kB / 478.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001406/0.1198, allocations: 0.9758 MB / 479.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004486/0.1243, allocations: 3.287 MB / 482.6 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.1254, allocations: 0.684 MB / 483.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006039/0.126, allocations: 431.4 kB / 483.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.753e-05/0.126, allocations: 8.562 kB / 483.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.1261, allocations: 43.12 kB / 483.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.464e-06/0.1261, allocations: 0 / 483.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=75): time 0.003666/0.1298, allocations: 2.428 MB / 486.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.1298, allocations: 89.66 kB / 486.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004301/0.1303, allocations: 437.8 kB / 486.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.637e-05/0.1303, allocations: 41.7 kB / 486.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.1305, allocations: 355.6 kB / 487.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001743/0.1307, allocations: 256.2 kB / 487.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1308, allocations: 73.67 kB / 487.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.131, allocations: 386.7 kB / 487.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004663/0.1314, allocations: 337.8 kB / 488.1 MB, free: 10.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005766/0.132, allocations: 0.5185 MB / 488.6 MB, free: 9.754 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.004836/0.1369, allocations: 2.245 MB / 490.9 MB, free: 7.418 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.1369, allocations: 4 kB / 490.9 MB, free: 7.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001513/0.1384, allocations: 1.094 MB / 492 MB, free: 6.293 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.1384, allocations: 12.12 kB / 492 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.1385, allocations: 8 kB / 492 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001392/0.1386, allocations: 36.83 kB / 492 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007271/0.1393, allocations: 195.6 kB / 492.2 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.1403, allocations: 1.393 MB / 493.6 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003756/0.1407, allocations: 35.97 kB / 493.6 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.86e-05/0.1408, allocations: 28 kB / 493.7 MB, free: 4.449 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 sytem: 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.0003485/0.1412, allocations: 277.5 kB / 493.9 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.1413, allocations: 71.23 kB / 494 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/0.1427, allocations: 0.97 MB / 495 MB, free: 3.098 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.407e-05/0.1427, allocations: 19.98 kB / 495 MB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.1427, allocations: 4 kB / 495 MB, free: 3.074 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1427, allocations: 3.938 kB / 495 MB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.1456, allocations: 2.009 MB / 497 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.1456, allocations: 4 kB / 497 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006293/0.1462, allocations: 147.8 kB / 497.2 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.383e-05/0.1464, allocations: 40.78 kB / 497.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.702e-05/0.1464, allocations: 24.48 kB / 497.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/0.1474, allocations: 1.386 MB / 498.6 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.1474, allocations: 7.938 kB / 498.6 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.1493, allocations: 1.536 MB / 0.4884 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.1494, allocations: 144.2 kB / 0.4886 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.71e-05/0.1495, allocations: 20 kB / 0.4886 GB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003493/0.1498, allocations: 35.91 kB / 0.4886 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.546e-05/0.1499, allocations: 68.48 kB / 0.4887 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.843e-05/0.15, allocations: 28 kB / 0.4887 GB, free: 13.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003127/0.1503, allocations: 295.1 kB / 0.489 GB, free: 12.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1503, allocations: 0 / 0.489 GB, free: 12.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006474/0.151, allocations: 184 kB / 0.4892 GB, free: 12.77 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.0002469/0.1512, allocations: 166.9 kB / 0.4893 GB, free: 12.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.1526, allocations: 0.9465 MB / 0.4903 GB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.1526, allocations: 0 / 0.4903 GB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006482/0.1533, allocations: 0.5186 MB / 0.4908 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.1543, allocations: 138.1 kB / 0.4909 GB, free: 10.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003003/0.1573, allocations: 2.429 MB / 0.4933 GB, free: 8.461 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005958/0.158, allocations: 1.021 MB / 0.4943 GB, free: 7.414 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005687/0.1585, allocations: 201.4 kB / 0.4945 GB, free: 7.215 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.1587, allocations: 51.44 kB / 0.4945 GB, free: 7.164 MB / 382.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1587, allocations: 0 / 0.4945 GB, free: 7.164 MB / 382.1 MB Notification: Performance of Templates: time 0.1986/0.3574, allocations: 7.517 MB / 0.5019 GB, free: 55.88 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches