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.001156/0.001157, allocations: 112.6 kB / 17.7 MB, free: 5.387 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.001014/0.001014, allocations: 182.9 kB / 18.63 MB, free: 4.461 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.36/1.36, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1755/0.1755, allocations: 38.04 MB / 330.5 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 65.08 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1029, allocations: 58.06 MB / 458.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.00747/0.1104, allocations: 6.557 MB / 464.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002664/0.1131, allocations: 1.66 MB / 466.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.1134, allocations: 27.81 kB / 466.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004861/0.1139, allocations: 158.7 kB / 466.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008303/0.1148, allocations: 445.8 kB / 467.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006039/0.1154, allocations: 343.4 kB / 467.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001353/0.1167, allocations: 1.504 MB / 469 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004758/0.1172, allocations: 401.7 kB / 469.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007735/0.118, allocations: 0.5918 MB / 470 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008205/0.1188, allocations: 0.6504 MB / 470.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.119, allocations: 96 kB / 470.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001564/0.1191, allocations: 100 kB / 470.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000398/0.1195, allocations: 419 kB / 471.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004328/0.12, allocations: 474 kB / 471.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000994/0.121, allocations: 1.184 MB / 472.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.121, allocations: 0 / 472.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.121, allocations: 0 / 472.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.121, allocations: 0 / 472.9 MB, free: 8.734 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.002674/0.1237, allocations: 1.316 MB / 474.2 MB, free: 7.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.1238, allocations: 11.89 kB / 474.2 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.1239, allocations: 99.94 kB / 474.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001529/0.1255, allocations: 0.7327 MB / 475 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004947/0.126, allocations: 347 kB / 475.4 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.1261, allocations: 64 kB / 475.4 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00217/0.1283, allocations: 1.145 MB / 476.6 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.1283, allocations: 4 kB / 476.6 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.496e-05/0.1284, allocations: 24 kB / 476.6 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.1285, allocations: 41.28 kB / 476.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002572/0.1311, allocations: 1.176 MB / 477.8 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005479/0.1366, allocations: 3.48 MB / 481.3 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002332/0.139, allocations: 0.9536 MB / 482.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001577/0.1406, allocations: 0.6903 MB / 482.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.524e-05/0.1406, allocations: 4.562 kB / 483 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001446/0.1421, allocations: 0.681 MB / 483.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.605e-06/0.1421, allocations: 4 kB / 483.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.01781/0.1599, allocations: 5.666 MB / 489.3 MB, free: 7.883 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.125e-05/0.16, allocations: 93.66 kB / 489.4 MB, free: 7.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005123/0.1605, allocations: 473.8 kB / 489.9 MB, free: 7.297 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.45e-05/0.1606, allocations: 37.7 kB / 489.9 MB, free: 7.254 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.1608, allocations: 320.3 kB / 490.2 MB, free: 6.938 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.161, allocations: 209.1 kB / 490.4 MB, free: 6.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002316/0.1612, allocations: 126.2 kB / 490.5 MB, free: 6.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1614, allocations: 374.8 kB / 490.9 MB, free: 6.227 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.1624, allocations: 0.5051 MB / 491.4 MB, free: 5.723 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.1635, allocations: 0.6296 MB / 492 MB, free: 5.055 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.006489/0.17, allocations: 3.127 MB / 495.2 MB, free: 1.848 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1701, allocations: 0 / 495.2 MB, free: 1.848 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006986/0.177, allocations: 2.494 MB / 497.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.028e-05/0.1771, allocations: 53.67 kB / 497.7 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.1771, allocations: 4 kB / 497.7 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002297/0.1794, allocations: 1.09 MB / 498.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004646/0.1799, allocations: 111.8 kB / 498.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01489/0.1948, allocations: 6.861 MB / 0.4939 GB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007411/0.1956, allocations: 87.95 kB / 0.494 GB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.1957, allocations: 43.92 kB / 0.494 GB, free: 6.941 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 system: 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.000455/0.1962, allocations: 269.7 kB / 0.4943 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.1963, allocations: 67.23 kB / 0.4944 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007347/0.2037, allocations: 2.429 MB / 0.4967 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.2037, allocations: 4 kB / 0.4967 GB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2037, allocations: 0 / 0.4967 GB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.2037, allocations: 7.984 kB / 0.4967 GB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008977/0.2127, allocations: 3.563 MB / 0.5002 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.2127, allocations: 4.156 kB / 0.5002 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003621/0.2131, allocations: 83.89 kB / 0.5003 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1985/0.4116, allocations: 1.08 MB / 0.5014 GB, free: 57.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002146/0.4119, allocations: 20.05 kB / 0.5014 GB, free: 57.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01563/0.4275, allocations: 6.833 MB / 0.5081 GB, free: 55.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.4275, allocations: 6.078 kB / 0.5081 GB, free: 55.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009296/0.4368, allocations: 3.197 MB / 0.5112 GB, free: 54.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004629/0.4373, allocations: 223.6 kB / 0.5114 GB, free: 54.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.4375, allocations: 34.06 kB / 0.5114 GB, free: 54.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006773/0.4382, allocations: 97.05 kB / 0.5115 GB, free: 54.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004092/0.4386, allocations: 174.5 kB / 0.5117 GB, free: 54.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.813e-05/0.4386, allocations: 23.34 kB / 0.5117 GB, free: 54.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003743/0.439, allocations: 320.2 kB / 0.512 GB, free: 54.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.439, allocations: 0 / 0.512 GB, free: 54.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009971/0.44, allocations: 227.1 kB / 0.5122 GB, free: 54.07 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.0001814/0.4402, allocations: 141.7 kB / 0.5124 GB, free: 53.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004039/0.4443, allocations: 1.731 MB / 0.5141 GB, free: 53.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4443, allocations: 1.125 kB / 0.5141 GB, free: 53.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002757/0.447, allocations: 1.112 MB / 0.5151 GB, free: 53.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007885/0.4478, allocations: 162.3 kB / 0.5153 GB, free: 53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/0.4508, allocations: 1.684 MB / 0.5169 GB, free: 52.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000453/0.4512, allocations: 0.9986 MB / 0.5179 GB, free: 51.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003433/0.4516, allocations: 125.5 kB / 0.518 GB, free: 51.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.4517, allocations: 41.47 kB / 0.5181 GB, free: 51.41 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.4517, allocations: 0 / 0.5181 GB, free: 51.41 MB / 382.1 MB Notification: Performance of Templates: time 0.01853/0.4702, allocations: 16.81 MB / 0.5345 GB, free: 38.32 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","/var/lib/jenkins1/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