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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001629/0.001629, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.1 MB / 223.1 MB, free: 8.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001045/0.001045, allocations: 106.5 kB / 270.5 MB, free: 8.422 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1726/0.1726, allocations: 38.01 MB / 355.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001013, allocations: 59.91 kB / 421.9 MB, free: 37.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.4003, allocations: 55.24 MB / 477.1 MB, free: 9.898 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.009501/0.4098, allocations: 7.793 MB / 484.9 MB, free: 4.371 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00439/0.4143, allocations: 2.086 MB / 487 MB, free: 2.906 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008715/0.4152, allocations: 55.69 kB / 487 MB, free: 2.883 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006166/0.4158, allocations: 127.4 kB / 487.2 MB, free: 2.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001126/0.417, allocations: 414.7 kB / 487.6 MB, free: 2.594 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009331/0.4179, allocations: 320.2 kB / 487.9 MB, free: 2.418 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002605/0.4205, allocations: 2.009 MB / 489.9 MB, free: 1.77 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005225/0.4211, allocations: 336.8 kB / 490.2 MB, free: 1.641 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.4222, allocations: 0.5104 MB / 490.7 MB, free: 1.449 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001204/0.4234, allocations: 0.667 MB / 491.4 MB, free: 1.227 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001538/0.4235, allocations: 53.31 kB / 491.4 MB, free: 1.227 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002111/0.4238, allocations: 53.06 kB / 491.5 MB, free: 1.227 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005674/0.4243, allocations: 371 kB / 491.9 MB, free: 1.113 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006883/0.425, allocations: 423 kB / 492.3 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001621/0.4267, allocations: 1.136 MB / 493.4 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.4267, allocations: 4 kB / 493.4 MB, free: 500 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4267, allocations: 0 / 493.4 MB, free: 500 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.4267, allocations: 3.938 kB / 493.4 MB, free: 496 kB / 314.7 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.003633/0.4304, allocations: 1.302 MB / 494.7 MB, free: 15.67 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.389e-05/0.4304, allocations: 9.938 kB / 494.7 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002685/0.4307, allocations: 96.94 kB / 494.8 MB, free: 15.63 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001912/0.4326, allocations: 0.6962 MB / 495.5 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005245/0.4332, allocations: 341.6 kB / 495.9 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/0.4333, allocations: 68.73 kB / 495.9 MB, free: 14.9 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002733/0.4361, allocations: 1.148 MB / 497.1 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.4361, allocations: 5.203 kB / 497.1 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.883e-05/0.4362, allocations: 30.73 kB / 497.1 MB, free: 14.22 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/0.4364, allocations: 38.5 kB / 497.1 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003763/0.4401, allocations: 1.174 MB / 498.3 MB, free: 13.63 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009144/0.4493, allocations: 3.5 MB / 0.4901 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003375/0.4527, allocations: 0.9631 MB / 0.491 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002168/0.455, allocations: 0.68 MB / 0.4917 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.039e-05/0.4551, allocations: 5.969 kB / 0.4917 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001951/0.457, allocations: 0.6852 MB / 0.4923 GB, free: 9.742 MB / 330.7 MB Notification: Performance of pre-optimization done (n=59): time 4.369e-06/0.457, allocations: 1.219 kB / 0.4923 GB, free: 9.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=61): time 0.02293/0.48, allocations: 5.659 MB / 0.4979 GB, free: 5.832 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.77e-05/0.4801, allocations: 101.6 kB / 0.498 GB, free: 5.715 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008024/0.4809, allocations: 469.8 kB / 0.4984 GB, free: 5.246 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.4811, allocations: 41.7 kB / 0.4984 GB, free: 5.199 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003845/0.4815, allocations: 320.2 kB / 0.4987 GB, free: 4.879 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002749/0.4818, allocations: 209.1 kB / 0.4989 GB, free: 4.672 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003827/0.4822, allocations: 130.2 kB / 0.4991 GB, free: 4.539 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002406/0.4824, allocations: 370.8 kB / 0.4994 GB, free: 4.168 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.4837, allocations: 0.5051 MB / 0.4999 GB, free: 3.664 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.4849, allocations: 0.6336 MB / 0.5005 GB, free: 2.988 MB / 330.7 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.007405/0.4923, allocations: 3.139 MB / 0.5036 GB, free: 15.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.4923, allocations: 0 / 0.5036 GB, free: 15.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008376/0.5007, allocations: 2.49 MB / 0.506 GB, free: 13.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.396e-05/0.5008, allocations: 49.69 kB / 0.5061 GB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.5008, allocations: 4 kB / 0.5061 GB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00254/0.5034, allocations: 1.086 MB / 0.5071 GB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004548/0.5039, allocations: 111.8 kB / 0.5073 GB, free: 12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01519/0.5191, allocations: 6.303 MB / 0.5134 GB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009184/0.52, allocations: 91.95 kB / 0.5135 GB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.5201, allocations: 43.91 kB / 0.5135 GB, free: 5.43 MB / 346.7 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.0006056/0.5207, allocations: 287.4 kB / 0.5138 GB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.5209, allocations: 55.34 kB / 0.5139 GB, free: 5.086 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008311/0.5292, allocations: 2.429 MB / 0.5162 GB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.5292, allocations: 11.97 kB / 0.5162 GB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.5292, allocations: 7.938 kB / 0.5163 GB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.5293, allocations: 0 / 0.5163 GB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/0.5398, allocations: 3.559 MB / 0.5197 GB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.5398, allocations: 0 / 0.5197 GB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000372/0.5402, allocations: 75.89 kB / 0.5198 GB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002951/0.5431, allocations: 1.09 MB / 0.5209 GB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001257/0.5433, allocations: 19.92 kB / 0.5209 GB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02316/0.5664, allocations: 6.272 MB / 0.527 GB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.5665, allocations: 8 kB / 0.527 GB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09412/0.6606, allocations: 23.12 MB / 0.5496 GB, free: 15.92 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004152/0.6611, allocations: 220.4 kB / 0.5498 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.6612, allocations: 31.98 kB / 0.5498 GB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008202/0.662, allocations: 99.86 kB / 0.5499 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004795/0.6625, allocations: 168.2 kB / 0.5501 GB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.97e-05/0.6626, allocations: 19.98 kB / 0.5501 GB, free: 15.38 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004577/0.6631, allocations: 330.8 kB / 0.5504 GB, free: 15.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6631, allocations: 0 / 0.5504 GB, free: 15.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001229/0.6643, allocations: 324 kB / 0.5507 GB, free: 14.74 MB / 394.7 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.000207/0.6645, allocations: 131.1 kB / 0.5509 GB, free: 14.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004676/0.6692, allocations: 1.723 MB / 0.5525 GB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.6692, allocations: 384 / 0.5525 GB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003207/0.6724, allocations: 1.099 MB / 0.5536 GB, free: 11.74 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.6735, allocations: 149.3 kB / 0.5538 GB, free: 11.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006022/0.6795, allocations: 2.833 MB / 0.5565 GB, free: 8.691 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006706/0.6802, allocations: 1.017 MB / 0.5575 GB, free: 7.648 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005449/0.6808, allocations: 133.1 kB / 0.5576 GB, free: 7.516 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.6809, allocations: 51.42 kB / 0.5577 GB, free: 7.469 MB / 394.7 MB Notification: Performance of SimCode: time 7.62e-07/0.681, allocations: 3.938 kB / 0.5577 GB, free: 7.465 MB / 394.7 MB Notification: Performance of Templates: time 0.0326/0.7136, allocations: 21.11 MB / 0.5783 GB, free: 2.344 MB / 410.7 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@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches