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.001376/0.001376, allocations: 111.8 kB / 16.63 MB, free: 6.953 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.001469/0.001469, allocations: 193.8 kB / 17.55 MB, free: 6.043 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.357/1.357, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1777/0.1777, allocations: 38.03 MB / 329.4 MB, free: 9.039 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 66.02 kB / 398.3 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1017, allocations: 58.06 MB / 456.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009298/0.111, allocations: 7.735 MB / 464.1 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004139/0.1151, allocations: 2.243 MB / 466.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008697/0.116, allocations: 51.69 kB / 466.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.1174, allocations: 414.3 kB / 466.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001078/0.1185, allocations: 382.3 kB / 467.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000903/0.1194, allocations: 315.5 kB / 467.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001213/0.1206, allocations: 1.028 MB / 468.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000794/0.1214, allocations: 0.5121 MB / 469 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000802/0.1222, allocations: 466 kB / 469.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008771/0.1231, allocations: 0.5959 MB / 470.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001505/0.1233, allocations: 71.94 kB / 470.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005699/0.1239, allocations: 267.5 kB / 470.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003553/0.1242, allocations: 375.1 kB / 470.8 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004599/0.1247, allocations: 421.9 kB / 471.2 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001025/0.1257, allocations: 1.036 MB / 472.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1257, allocations: 0 / 472.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1257, allocations: 0 / 472.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.48e-05/0.1258, allocations: 4 kB / 472.2 MB, free: 8.504 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.002191/0.128, allocations: 1.121 MB / 473.3 MB, free: 7.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.128, allocations: 15.83 kB / 473.3 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007172/0.1288, allocations: 127.8 kB / 473.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009387/0.1297, allocations: 0.5728 MB / 474 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.794e-05/0.1298, allocations: 49.67 kB / 474.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.1299, allocations: 84.02 kB / 474.2 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.1314, allocations: 1.006 MB / 475.2 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.1314, allocations: 3.984 kB / 475.2 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.912e-05/0.1315, allocations: 27.98 kB / 475.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002024/0.1317, allocations: 77.95 kB / 475.3 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.1331, allocations: 0.9719 MB / 476.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004492/0.1376, allocations: 3.275 MB / 479.5 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009969/0.1387, allocations: 0.6801 MB / 480.2 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005843/0.1393, allocations: 434.7 kB / 480.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.072e-05/0.1393, allocations: 12.94 kB / 480.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.1394, allocations: 35.12 kB / 480.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.174e-06/0.1394, allocations: 4 kB / 480.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=75): time 0.00362/0.143, allocations: 2.427 MB / 483.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.1431, allocations: 85.67 kB / 483.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004348/0.1435, allocations: 445.8 kB / 483.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.322e-05/0.1436, allocations: 37.7 kB / 483.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/0.1438, allocations: 355.6 kB / 484 MB, free: 12.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.144, allocations: 264.1 kB / 484.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002002/0.1442, allocations: 146.6 kB / 484.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.1443, allocations: 378.7 kB / 484.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004815/0.1448, allocations: 345.8 kB / 485.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006122/0.1454, allocations: 0.5185 MB / 485.6 MB, free: 10.56 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.004962/0.1504, allocations: 2.241 MB / 487.9 MB, free: 8.227 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1504, allocations: 8 kB / 487.9 MB, free: 8.219 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001543/0.152, allocations: 1.106 MB / 489 MB, free: 7.086 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.152, allocations: 4 kB / 489 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.152, allocations: 8 kB / 489 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/0.1522, allocations: 32.84 kB / 489 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007188/0.1529, allocations: 195.6 kB / 489.2 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.1541, allocations: 1.5 MB / 490.7 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003947/0.1545, allocations: 35.97 kB / 490.8 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.924e-05/0.1546, allocations: 32 kB / 490.8 MB, free: 5.137 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.0003487/0.155, allocations: 275.2 kB / 491.1 MB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.1551, allocations: 63.23 kB / 491.1 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.1565, allocations: 0.9739 MB / 492.1 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.27e-05/0.1565, allocations: 19.98 kB / 492.1 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/0.1565, allocations: 7.938 kB / 492.1 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.1566, allocations: 7.922 kB / 492.1 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002906/0.1595, allocations: 2.001 MB / 494.1 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.483e-06/0.1595, allocations: 7.938 kB / 494.2 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006471/0.1601, allocations: 155.7 kB / 494.3 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.37e-05/0.1602, allocations: 36.83 kB / 494.3 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.839e-05/0.1603, allocations: 20 kB / 494.4 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009948/0.1613, allocations: 1.496 MB / 495.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.1613, allocations: 7.938 kB / 495.9 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001832/0.1632, allocations: 1.536 MB / 497.4 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.1633, allocations: 136.3 kB / 497.5 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.644e-05/0.1634, allocations: 23.98 kB / 497.6 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003536/0.1637, allocations: 35.95 kB / 497.6 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.455e-05/0.1638, allocations: 60.38 kB / 497.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.936e-05/0.1639, allocations: 31.98 kB / 497.7 MB, free: 13.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003162/0.1642, allocations: 295.1 kB / 498 MB, free: 13.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1642, allocations: 0 / 498 MB, free: 13.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006578/0.1649, allocations: 180 kB / 498.1 MB, free: 13.36 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.000268/0.1652, allocations: 170.9 kB / 498.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002013/0.1672, allocations: 1.169 MB / 499.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.1672, allocations: 0 / 499.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000738/0.1679, allocations: 0.5225 MB / 0.4883 GB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008728/0.1688, allocations: 140.5 kB / 0.4884 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002922/0.1718, allocations: 2.302 MB / 0.4907 GB, free: 8.945 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005614/0.1723, allocations: 1.013 MB / 0.4917 GB, free: 7.906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005556/0.1729, allocations: 209.4 kB / 0.4919 GB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.1731, allocations: 55.42 kB / 0.4919 GB, free: 7.645 MB / 382.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1731, allocations: 0 / 0.4919 GB, free: 7.645 MB / 382.1 MB Notification: Performance of Templates: time 0.01302/0.1861, allocations: 7.943 MB / 0.4997 GB, free: 15.76 MB / 398.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