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.001286/0.001287, allocations: 99.45 kB / 17.59 MB, free: 5.562 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.001347/0.001347, allocations: 191.3 kB / 18.52 MB, free: 4.637 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.334/1.334, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1785/0.1785, allocations: 38.03 MB / 330.4 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001248, allocations: 66.98 kB / 399.5 MB, free: 34.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08349/0.08475, allocations: 58.06 MB / 457.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007694/0.09248, allocations: 6.546 MB / 464.1 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00281/0.09533, allocations: 1.66 MB / 465.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004427/0.09579, allocations: 27.81 kB / 465.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005251/0.09633, allocations: 162.8 kB / 465.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009849/0.09737, allocations: 445.8 kB / 466.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006849/0.09807, allocations: 351.4 kB / 466.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001512/0.0996, allocations: 1.496 MB / 468.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004975/0.1001, allocations: 405.7 kB / 468.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009017/0.101, allocations: 0.5918 MB / 469.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.102, allocations: 0.6387 MB / 469.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002391/0.1023, allocations: 107.9 kB / 469.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002803/0.1026, allocations: 100 kB / 470 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004784/0.1031, allocations: 419.1 kB / 470.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006428/0.1037, allocations: 462 kB / 470.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.1049, allocations: 1.168 MB / 472.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1049, allocations: 0 / 472.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1049, allocations: 0 / 472.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.561e-05/0.105, allocations: 0 / 472.1 MB, free: 9.473 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.00304/0.108, allocations: 1.309 MB / 473.4 MB, free: 8.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.1081, allocations: 19.89 kB / 473.4 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/0.1083, allocations: 92 kB / 473.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.1097, allocations: 0.6976 MB / 474.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004215/0.1101, allocations: 346.9 kB / 474.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.1103, allocations: 64 kB / 474.6 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.1126, allocations: 1.149 MB / 475.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.1127, allocations: 0 / 475.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.233e-05/0.1128, allocations: 24 kB / 475.8 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000119/0.1129, allocations: 45.28 kB / 475.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002822/0.1157, allocations: 1.176 MB / 477 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005103/0.1208, allocations: 3.484 MB / 480.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002545/0.1234, allocations: 0.9614 MB / 481.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001658/0.1251, allocations: 0.6825 MB / 482.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.685e-05/0.1251, allocations: 4.562 kB / 482.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001531/0.1267, allocations: 0.6888 MB / 482.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.795e-06/0.1267, allocations: 0 / 482.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.02012/0.1468, allocations: 5.67 MB / 488.5 MB, free: 8.645 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.458e-05/0.1469, allocations: 85.67 kB / 488.5 MB, free: 8.539 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005569/0.1475, allocations: 477.8 kB / 489 MB, free: 8.062 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001103/0.1476, allocations: 37.7 kB / 489.1 MB, free: 8.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/0.1479, allocations: 324.3 kB / 489.4 MB, free: 7.699 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002084/0.1481, allocations: 205.1 kB / 489.6 MB, free: 7.496 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002523/0.1483, allocations: 134.2 kB / 489.7 MB, free: 7.359 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1485, allocations: 370.8 kB / 490.1 MB, free: 6.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001124/0.1496, allocations: 0.509 MB / 490.6 MB, free: 6.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.1508, allocations: 0.6257 MB / 491.2 MB, free: 5.816 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.006933/0.1577, allocations: 3.135 MB / 494.3 MB, free: 2.602 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.1578, allocations: 3.938 kB / 494.3 MB, free: 2.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007819/0.1656, allocations: 2.494 MB / 496.8 MB, free: 88 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.723e-05/0.1657, allocations: 49.72 kB / 496.9 MB, free: 32 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1657, allocations: 4 kB / 496.9 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002457/0.1682, allocations: 1.093 MB / 498 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004912/0.1687, allocations: 107.8 kB / 498.1 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.016/0.1847, allocations: 6.863 MB / 0.4931 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007836/0.1855, allocations: 87.95 kB / 0.4932 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.1856, allocations: 43.97 kB / 0.4932 GB, free: 7.695 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.0004487/0.1861, allocations: 273.8 kB / 0.4935 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.1862, allocations: 63.25 kB / 0.4936 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008161/0.1944, allocations: 2.436 MB / 0.4959 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.1944, allocations: 7.984 kB / 0.4959 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1944, allocations: 0 / 0.4959 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.948e-06/0.1944, allocations: 4 kB / 0.4959 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009685/0.2041, allocations: 3.556 MB / 0.4994 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.2042, allocations: 11.97 kB / 0.4994 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003794/0.2046, allocations: 79.83 kB / 0.4995 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/0.207, allocations: 1.09 MB / 0.5006 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.23e-05/0.2071, allocations: 19.98 kB / 0.5006 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1758/0.383, allocations: 6.842 MB / 0.5073 GB, free: 55.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.383, allocations: 2.281 kB / 0.5073 GB, free: 55.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009836/0.3929, allocations: 3.193 MB / 0.5104 GB, free: 55.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003716/0.3933, allocations: 220.7 kB / 0.5106 GB, free: 55.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000141/0.3934, allocations: 38.61 kB / 0.5106 GB, free: 55.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008032/0.3942, allocations: 91.28 kB / 0.5107 GB, free: 55.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004576/0.3947, allocations: 170.3 kB / 0.5109 GB, free: 54.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.076e-05/0.3948, allocations: 29.05 kB / 0.5109 GB, free: 54.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004535/0.3952, allocations: 322.3 kB / 0.5112 GB, free: 54.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3952, allocations: 0.8438 kB / 0.5112 GB, free: 54.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009241/0.3962, allocations: 224.8 kB / 0.5114 GB, free: 54.81 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.0001693/0.3963, allocations: 143.3 kB / 0.5116 GB, free: 54.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00462/0.401, allocations: 1.841 MB / 0.5134 GB, free: 54.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.401, allocations: 0 / 0.5134 GB, free: 54.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003146/0.4041, allocations: 1.108 MB / 0.5145 GB, free: 53.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009129/0.4051, allocations: 164.1 kB / 0.5146 GB, free: 53.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002903/0.408, allocations: 1.773 MB / 0.5163 GB, free: 52.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.4084, allocations: 0.9981 MB / 0.5173 GB, free: 52.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.4086, allocations: 48.88 kB / 0.5174 GB, free: 52.09 MB / 382.1 MB Notification: Performance of SimCode: time 1.803e-06/0.4086, allocations: 0 / 0.5174 GB, free: 52.09 MB / 382.1 MB Notification: Performance of Templates: time 0.01528/0.4239, allocations: 13.43 MB / 0.5305 GB, free: 42.35 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/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