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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001818/0.001818, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.002297/0.002298, allocations: 192 kB / 18.62 MB, free: 4.434 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.636/1.636, allocations: 222.9 MB / 242.3 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.2222/0.2222, allocations: 38.04 MB / 330.5 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 61.09 kB / 400.2 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1559, allocations: 58.07 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008869/0.1648, allocations: 6.079 MB / 464.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002949/0.1678, allocations: 1.418 MB / 465.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003392/0.1682, allocations: 27.81 kB / 465.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005615/0.1688, allocations: 138.9 kB / 466 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008654/0.1697, allocations: 390 kB / 466.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005214/0.1702, allocations: 191.7 kB / 466.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009932/0.1712, allocations: 0.9189 MB / 467.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004187/0.1716, allocations: 274.7 kB / 467.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005305/0.1722, allocations: 414.2 kB / 468.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006874/0.1729, allocations: 458.5 kB / 468.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.51e-05/0.173, allocations: 48 kB / 468.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.1731, allocations: 47.94 kB / 468.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002941/0.1734, allocations: 263.3 kB / 468.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003315/0.1737, allocations: 322.4 kB / 469.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007183/0.1744, allocations: 0.6734 MB / 469.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1745, allocations: 4 kB / 469.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1745, allocations: 0 / 469.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.1745, allocations: 0 / 469.9 MB, free: 11.68 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001884/0.1764, allocations: 0.9486 MB / 470.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.1764, allocations: 19.88 kB / 470.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.1766, allocations: 72.09 kB / 471 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.1777, allocations: 0.5569 MB / 471.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.237e-05/0.1778, allocations: 41.12 kB / 471.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.859e-05/0.1779, allocations: 55.97 kB / 471.6 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.1789, allocations: 0.6249 MB / 472.2 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.1789, allocations: 0 / 472.2 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.927e-05/0.179, allocations: 16 kB / 472.3 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001198/0.1791, allocations: 40.97 kB / 472.3 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000841/0.18, allocations: 0.5074 MB / 472.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003397/0.1834, allocations: 2.214 MB / 475 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008738/0.1843, allocations: 500 kB / 475.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006328/0.1849, allocations: 354 kB / 475.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.902e-05/0.185, allocations: 4 kB / 475.9 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.185, allocations: 38.56 kB / 475.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.675e-06/0.185, allocations: 0 / 475.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003538/0.1886, allocations: 1.741 MB / 477.6 MB, free: 3.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.882e-05/0.1886, allocations: 93.17 kB / 477.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004873/0.1891, allocations: 425.8 kB / 478.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.1892, allocations: 33.64 kB / 478.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/0.1894, allocations: 296.5 kB / 478.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.1896, allocations: 165.6 kB / 478.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.1898, allocations: 98.16 kB / 478.7 MB, free: 2.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.1899, allocations: 358.8 kB / 479.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002977/0.1903, allocations: 189 kB / 479.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003691/0.1906, allocations: 311.6 kB / 479.6 MB, free: 1.602 MB / 350.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.002574/0.1932, allocations: 1.241 MB / 480.8 MB, free: 296 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1932, allocations: 0 / 480.8 MB, free: 296 kB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001183/0.1944, allocations: 0.699 MB / 481.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.1945, allocations: 8 kB / 481.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.1945, allocations: 4 kB / 481.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004346/0.1949, allocations: 141 kB / 481.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004488/0.1954, allocations: 107.9 kB / 481.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003203/0.1986, allocations: 2.618 MB / 484.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003438/0.1989, allocations: 28.03 kB / 484.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.022e-05/0.199, allocations: 19.98 kB / 484.4 MB, free: 12.52 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[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.0003952/0.1994, allocations: 229.6 kB / 484.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.1995, allocations: 55.28 kB / 484.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.2007, allocations: 0.6464 MB / 485.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.2007, allocations: 8 kB / 485.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.2008, allocations: 7.984 kB / 485.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.2008, allocations: 3.938 kB / 485.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002314/0.2031, allocations: 1.377 MB / 486.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.2031, allocations: 0 / 486.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003484/0.2035, allocations: 75.89 kB / 486.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004195/0.2039, allocations: 152.9 kB / 487 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/0.2039, allocations: 12 kB / 487 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003173/0.2071, allocations: 2.63 MB / 489.6 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.2071, allocations: 4 kB / 489.6 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.2088, allocations: 0.9807 MB / 490.6 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.209, allocations: 128.5 kB / 490.7 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.577e-05/0.2091, allocations: 16.09 kB / 490.7 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.2093, allocations: 19.86 kB / 490.8 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.261e-05/0.2094, allocations: 43.88 kB / 490.8 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/0.2095, allocations: 20 kB / 490.8 MB, free: 5.816 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003915/0.2099, allocations: 291.1 kB / 491.1 MB, free: 5.535 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2099, allocations: 0 / 491.1 MB, free: 5.535 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007492/0.2106, allocations: 144 kB / 491.2 MB, free: 5.395 MB / 366.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.0002056/0.2108, allocations: 109.2 kB / 491.4 MB, free: 5.281 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001333/0.2122, allocations: 0.6564 MB / 492 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.2122, allocations: 0 / 492 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007481/0.2129, allocations: 443.2 kB / 492.4 MB, free: 4.164 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008167/0.2138, allocations: 130.3 kB / 492.6 MB, free: 4.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.2161, allocations: 1.316 MB / 493.9 MB, free: 2.676 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005945/0.2167, allocations: 0.9331 MB / 494.8 MB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002953/0.217, allocations: 100.7 kB / 494.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.2172, allocations: 43.38 kB / 495 MB, free: 1.574 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2172, allocations: 0 / 495 MB, free: 1.574 MB / 366.1 MB Notification: Performance of Templates: time 0.01381/0.231, allocations: 6.749 MB / 0.4899 GB, free: 10.89 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/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