Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.InverterToGrid,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.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,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.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008838/0.0008841, allocations: 90.58 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.001016/0.001016, allocations: 173.1 kB / 17.56 MB, free: 6.184 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.322/1.322, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1942/0.1942, allocations: 38.09 MB / 330.8 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003066/0.0003067, allocations: 12.78 kB / 400.7 MB, free: 34.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09967/0.09999, allocations: 59.16 MB / 459.9 MB, free: 7.102 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008528/0.1086, allocations: 7.353 MB / 467.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004166/0.1128, allocations: 2.018 MB / 469.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009931/0.1138, allocations: 51.62 kB / 469.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007234/0.1145, allocations: 131.2 kB / 469.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00133/0.1159, allocations: 410.2 kB / 469.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008968/0.1168, allocations: 315.6 kB / 470.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002206/0.119, allocations: 2.003 MB / 472.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000536/0.1196, allocations: 324.2 kB / 472.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.1207, allocations: 498 kB / 472.9 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001346/0.1221, allocations: 0.6191 MB / 473.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000272/0.1224, allocations: 44 kB / 473.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003454/0.1227, allocations: 44 kB / 473.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005746/0.1233, allocations: 363.1 kB / 474 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008206/0.1241, allocations: 435.7 kB / 474.4 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.1253, allocations: 1.106 MB / 475.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1253, allocations: 0 / 475.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1253, allocations: 0 / 475.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.022e-05/0.1254, allocations: 0 / 475.5 MB, free: 7.379 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002967/0.1284, allocations: 1.173 MB / 476.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.1284, allocations: 12.03 kB / 476.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003548/0.1288, allocations: 107.8 kB / 476.8 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.1302, allocations: 0.686 MB / 477.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004427/0.1306, allocations: 363 kB / 477.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.1308, allocations: 64 kB / 477.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002472/0.1333, allocations: 1.2 MB / 479.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.1333, allocations: 11.94 kB / 479.1 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.375e-05/0.1334, allocations: 20 kB / 479.2 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001203/0.1335, allocations: 49.22 kB / 479.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002872/0.1364, allocations: 1.281 MB / 480.5 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005155/0.1416, allocations: 3.547 MB / 484 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002666/0.1443, allocations: 1.055 MB / 485.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001723/0.146, allocations: 0.745 MB / 485.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.57e-05/0.1461, allocations: 12.53 kB / 485.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001613/0.1477, allocations: 0.7475 MB / 486.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.084e-06/0.1477, allocations: 0 / 486.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.02155/0.1692, allocations: 6.983 MB / 493.6 MB, free: 4.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.518e-05/0.1694, allocations: 85.67 kB / 493.7 MB, free: 4.805 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000561/0.1699, allocations: 473.8 kB / 494.1 MB, free: 4.332 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.17, allocations: 41.69 kB / 494.2 MB, free: 4.285 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000268/0.1703, allocations: 324.2 kB / 494.5 MB, free: 3.961 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/0.1705, allocations: 205.1 kB / 494.7 MB, free: 3.758 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.1706, allocations: 65.61 kB / 494.7 MB, free: 3.688 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000223/0.1709, allocations: 374.8 kB / 495.1 MB, free: 3.312 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.1722, allocations: 0.552 MB / 495.7 MB, free: 2.762 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.1735, allocations: 0.6805 MB / 496.3 MB, free: 2.035 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007634/0.1811, allocations: 3.377 MB / 499.7 MB, free: 14.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.1812, allocations: 0 / 499.7 MB, free: 14.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008927/0.1901, allocations: 3.057 MB / 0.491 GB, free: 11.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.026e-05/0.1902, allocations: 49.69 kB / 0.491 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.1902, allocations: 4 kB / 0.491 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002783/0.193, allocations: 1.176 MB / 0.4922 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005038/0.1935, allocations: 115.7 kB / 0.4923 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01705/0.2106, allocations: 7.169 MB / 0.4993 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008627/0.2115, allocations: 108.1 kB / 0.4994 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.2117, allocations: 47.92 kB / 0.4995 GB, free: 2.707 MB / 382.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[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004979/0.2122, allocations: 275.4 kB / 0.4997 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.2123, allocations: 67.22 kB / 0.4998 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2088/0.4211, allocations: 3.001 MB / 0.5027 GB, free: 57.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.807e-05/0.4212, allocations: 6.5 kB / 0.5027 GB, free: 57.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.158e-06/0.4212, allocations: 4.344 kB / 0.5027 GB, free: 57.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.173e-05/0.4213, allocations: 8 kB / 0.5027 GB, free: 57.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/0.4338, allocations: 4.138 MB / 0.5068 GB, free: 56.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.457e-05/0.4338, allocations: 2.094 kB / 0.5068 GB, free: 56.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004257/0.4343, allocations: 81.78 kB / 0.5069 GB, free: 56.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002965/0.4372, allocations: 1.187 MB / 0.508 GB, free: 56.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001166/0.4374, allocations: 18.81 kB / 0.508 GB, free: 56.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01685/0.4542, allocations: 7.12 MB / 0.515 GB, free: 54.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.4543, allocations: 2.844 kB / 0.515 GB, free: 54.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0105/0.4648, allocations: 3.843 MB / 0.5187 GB, free: 53.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004108/0.4652, allocations: 220.4 kB / 0.5189 GB, free: 53.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.4653, allocations: 34.92 kB / 0.519 GB, free: 53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007342/0.4661, allocations: 131.3 kB / 0.5191 GB, free: 52.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00041/0.4665, allocations: 164.2 kB / 0.5193 GB, free: 52.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.639e-05/0.4666, allocations: 24.8 kB / 0.5193 GB, free: 52.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003423/0.4669, allocations: 321.8 kB / 0.5196 GB, free: 52.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4669, allocations: 7.875 kB / 0.5196 GB, free: 52.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007894/0.4677, allocations: 220.6 kB / 0.5198 GB, free: 52.64 MB / 382.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: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001876/0.4679, allocations: 139.3 kB / 0.5199 GB, free: 52.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004329/0.4723, allocations: 1.951 MB / 0.5219 GB, free: 51.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.4723, allocations: 0 / 0.5219 GB, free: 51.58 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003067/0.4753, allocations: 1.277 MB / 0.5231 GB, free: 50.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009467/0.4763, allocations: 144.9 kB / 0.5232 GB, free: 50.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.479, allocations: 2.064 MB / 0.5253 GB, free: 48.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004304/0.4795, allocations: 0.9931 MB / 0.5262 GB, free: 47.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000379/0.4798, allocations: 125.3 kB / 0.5263 GB, free: 47.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.48, allocations: 51.42 kB / 0.5264 GB, free: 46.98 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.48, allocations: 1.406 kB / 0.5264 GB, free: 46.98 MB / 382.1 MB Notification: Performance of Templates: time 0.01999/0.5, allocations: 15.49 MB / 0.5415 GB, free: 31.58 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches