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.001342/0.001341, allocations: 113 kB / 16.63 MB, free: 6.332 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.001529/0.001529, allocations: 189.9 kB / 17.55 MB, free: 5.801 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.384/1.384, allocations: 222.9 MB / 241.2 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1782/0.1782, allocations: 38.03 MB / 329.4 MB, free: 9.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 61.5 kB / 398.3 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09892/0.1003, allocations: 58.07 MB / 456.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008185/0.1085, allocations: 7.797 MB / 464.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00342/0.1119, allocations: 2.026 MB / 466.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004884/0.1124, allocations: 51.69 kB / 466.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000455/0.1129, allocations: 127.1 kB / 466.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008465/0.1138, allocations: 410.2 kB / 466.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005633/0.1144, allocations: 323.6 kB / 467.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001301/0.1157, allocations: 1.504 MB / 468.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004662/0.1162, allocations: 401.7 kB / 469 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007743/0.1169, allocations: 0.5956 MB / 469.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008744/0.1178, allocations: 0.6933 MB / 470.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.118, allocations: 96 kB / 470.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001748/0.1182, allocations: 100 kB / 470.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003878/0.1185, allocations: 419 kB / 470.9 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004553/0.119, allocations: 470 kB / 471.3 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009684/0.12, allocations: 1.172 MB / 472.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.12, allocations: 0 / 472.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.12, allocations: 0 / 472.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.12, allocations: 0 / 472.5 MB, free: 8.219 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.002594/0.1226, allocations: 1.313 MB / 473.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.1227, allocations: 15.89 kB / 473.8 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001799/0.1229, allocations: 99.89 kB / 473.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.1241, allocations: 0.686 MB / 474.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003831/0.1244, allocations: 347 kB / 474.9 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.1246, allocations: 71.91 kB / 475 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002186/0.1268, allocations: 1.141 MB / 476.1 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.1268, allocations: 4 kB / 476.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.488e-05/0.1269, allocations: 31.94 kB / 476.2 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001102/0.127, allocations: 41.22 kB / 476.2 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002576/0.1296, allocations: 1.176 MB / 477.4 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004897/0.1345, allocations: 3.484 MB / 480.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00239/0.1369, allocations: 0.9574 MB / 481.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/0.1385, allocations: 0.6864 MB / 482.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.679e-05/0.1386, allocations: 4.562 kB / 482.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001518/0.1401, allocations: 0.6849 MB / 483.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.054e-06/0.1401, allocations: 0 / 483.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.0184/0.1585, allocations: 5.663 MB / 488.9 MB, free: 7.391 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.486e-05/0.1586, allocations: 97.64 kB / 489 MB, free: 7.273 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005336/0.1592, allocations: 473.7 kB / 489.4 MB, free: 6.801 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.285e-05/0.1593, allocations: 41.7 kB / 489.5 MB, free: 6.754 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/0.1595, allocations: 320.2 kB / 489.8 MB, free: 6.438 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.1597, allocations: 205.1 kB / 490 MB, free: 6.234 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002412/0.1599, allocations: 130.3 kB / 490.1 MB, free: 6.102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1601, allocations: 370.8 kB / 490.5 MB, free: 5.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.1612, allocations: 0.509 MB / 491 MB, free: 5.223 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.1623, allocations: 0.6257 MB / 491.6 MB, free: 4.555 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.006744/0.1691, allocations: 3.139 MB / 494.8 MB, free: 1.336 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.1691, allocations: 0 / 494.8 MB, free: 1.336 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007195/0.1763, allocations: 2.502 MB / 497.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.115e-05/0.1764, allocations: 45.69 kB / 497.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.1764, allocations: 7.984 kB / 497.3 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002428/0.1788, allocations: 1.086 MB / 498.4 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.1793, allocations: 111.8 kB / 498.5 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01568/0.195, allocations: 6.862 MB / 0.4935 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008082/0.1958, allocations: 91.95 kB / 0.4936 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.196, allocations: 39.92 kB / 0.4936 GB, free: 6.43 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.0005373/0.1965, allocations: 283.4 kB / 0.4939 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.1967, allocations: 59.33 kB / 0.494 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007774/0.2044, allocations: 2.425 MB / 0.4963 GB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.478e-05/0.2045, allocations: 8 kB / 0.4964 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.2045, allocations: 3.938 kB / 0.4964 GB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.388e-05/0.2046, allocations: 7.922 kB / 0.4964 GB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2757/0.4803, allocations: 3.561 MB / 0.4998 GB, free: 56.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.312e-05/0.4804, allocations: 2.094 kB / 0.4998 GB, free: 56.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007901/0.4812, allocations: 78.08 kB / 0.4999 GB, free: 56.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004353/0.4856, allocations: 1.087 MB / 0.501 GB, free: 56.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001884/0.4858, allocations: 22.81 kB / 0.501 GB, free: 56.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02788/0.5137, allocations: 6.843 MB / 0.5077 GB, free: 54.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.5138, allocations: 2.109 kB / 0.5077 GB, free: 54.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01808/0.5319, allocations: 3.2 MB / 0.5108 GB, free: 53.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008036/0.5327, allocations: 223.5 kB / 0.511 GB, free: 53.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002158/0.5329, allocations: 32.05 kB / 0.5111 GB, free: 53.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001356/0.5343, allocations: 99.58 kB / 0.5111 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008045/0.5351, allocations: 169.4 kB / 0.5113 GB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.5353, allocations: 22.03 kB / 0.5113 GB, free: 53.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000618/0.5359, allocations: 322 kB / 0.5116 GB, free: 53.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5359, allocations: 0 / 0.5116 GB, free: 53.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00173/0.5377, allocations: 227.2 kB / 0.5119 GB, free: 53.17 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.0003205/0.538, allocations: 137.4 kB / 0.512 GB, free: 53.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008756/0.5468, allocations: 1.844 MB / 0.5138 GB, free: 52.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.5468, allocations: 1.812 kB / 0.5138 GB, free: 52.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005689/0.5525, allocations: 1.118 MB / 0.5149 GB, free: 52.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/0.5542, allocations: 163.9 kB / 0.515 GB, free: 52.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005352/0.5596, allocations: 1.972 MB / 0.517 GB, free: 50.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007316/0.5604, allocations: 0.9943 MB / 0.5179 GB, free: 50.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007836/0.5612, allocations: 120.6 kB / 0.518 GB, free: 50.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.5614, allocations: 50.91 kB / 0.5181 GB, free: 50.19 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5614, allocations: 4 kB / 0.5181 GB, free: 50.19 MB / 382.1 MB Notification: Performance of Templates: time 0.03794/0.5994, allocations: 16.38 MB / 0.5341 GB, free: 37.8 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