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.00123/0.00123, allocations: 115.7 kB / 17.74 MB, free: 5.34 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.001303/0.001303, allocations: 189.6 kB / 18.67 MB, free: 4.414 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.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1765/0.1765, allocations: 38.04 MB / 330.6 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 59.91 kB / 458.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3882/0.3898, allocations: 58.05 MB / 0.5048 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.00734/0.3971, allocations: 6.555 MB / 0.5112 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003221/0.4004, allocations: 1.665 MB / 0.5128 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005056/0.4009, allocations: 24.47 kB / 0.5128 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005915/0.4016, allocations: 158.1 kB / 0.513 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001162/0.4028, allocations: 438.9 kB / 0.5134 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000956/0.4037, allocations: 347.5 kB / 0.5137 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001918/0.4057, allocations: 1.512 MB / 0.5152 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005818/0.4063, allocations: 407.2 kB / 0.5156 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001211/0.4075, allocations: 0.6172 MB / 0.5162 GB, free: 448 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001106/0.4086, allocations: 0.6455 MB / 0.5168 GB, free: 208 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002057/0.4088, allocations: 101.2 kB / 0.5169 GB, free: 204 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003183/0.4091, allocations: 99.22 kB / 0.517 GB, free: 204 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005442/0.4097, allocations: 413.8 kB / 0.5174 GB, free: 44 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008593/0.4106, allocations: 473.8 kB / 0.5178 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001627/0.4122, allocations: 1.179 MB / 0.519 GB, free: 15.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.4122, allocations: 0 / 0.519 GB, free: 15.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4122, allocations: 0 / 0.519 GB, free: 15.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.116e-05/0.4122, allocations: 1.156 kB / 0.519 GB, free: 15.34 MB / 398.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.00324/0.4155, allocations: 1.308 MB / 0.5203 GB, free: 14.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.4155, allocations: 13.08 kB / 0.5203 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002333/0.4158, allocations: 96.91 kB / 0.5204 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001588/0.4174, allocations: 0.7384 MB / 0.5211 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004556/0.4178, allocations: 341.4 kB / 0.5214 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.418, allocations: 64.86 kB / 0.5215 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002633/0.4207, allocations: 1.145 MB / 0.5226 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.4207, allocations: 1.344 kB / 0.5226 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.956e-05/0.4208, allocations: 26.14 kB / 0.5226 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/0.4209, allocations: 37.83 kB / 0.5227 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003013/0.4239, allocations: 1.175 MB / 0.5238 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005787/0.4297, allocations: 3.484 MB / 0.5272 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002693/0.4325, allocations: 0.9605 MB / 0.5282 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001743/0.4342, allocations: 0.6909 MB / 0.5288 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.024e-05/0.4343, allocations: 6.531 kB / 0.5288 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001597/0.4359, allocations: 0.6782 MB / 0.5295 GB, free: 9.684 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.464e-06/0.4359, allocations: 0 / 0.5295 GB, free: 9.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.02064/0.4566, allocations: 5.669 MB / 0.535 GB, free: 6.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.943e-05/0.4567, allocations: 94.16 kB / 0.5351 GB, free: 6.637 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006938/0.4574, allocations: 469 kB / 0.5356 GB, free: 6.355 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001456/0.4575, allocations: 38.36 kB / 0.5356 GB, free: 6.316 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.4579, allocations: 330.4 kB / 0.5359 GB, free: 6.023 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002337/0.4581, allocations: 204.3 kB / 0.5361 GB, free: 5.848 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002615/0.4584, allocations: 129.3 kB / 0.5362 GB, free: 5.773 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.4585, allocations: 374 kB / 0.5366 GB, free: 5.414 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.4598, allocations: 0.5045 MB / 0.5371 GB, free: 5.168 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.4611, allocations: 0.627 MB / 0.5377 GB, free: 4.773 MB / 398.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.007261/0.4683, allocations: 3.135 MB / 0.5408 GB, free: 3.145 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.4684, allocations: 0 / 0.5408 GB, free: 3.145 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007823/0.4762, allocations: 2.49 MB / 0.5432 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.446e-05/0.4763, allocations: 49.69 kB / 0.5432 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.4763, allocations: 4 kB / 0.5432 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002494/0.4788, allocations: 1.089 MB / 0.5443 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005512/0.4794, allocations: 111.8 kB / 0.5444 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01639/0.4958, allocations: 6.863 MB / 0.5511 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009701/0.4968, allocations: 83.95 kB / 0.5512 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.4969, allocations: 39.98 kB / 0.5512 GB, free: 8.254 MB / 414.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.0005736/0.4975, allocations: 275.5 kB / 0.5515 GB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.4976, allocations: 71.23 kB / 0.5516 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008218/0.5059, allocations: 2.429 MB / 0.5539 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/0.5059, allocations: 11.94 kB / 0.554 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.5059, allocations: 0 / 0.554 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.5059, allocations: 3.984 kB / 0.554 GB, free: 5.441 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.5163, allocations: 3.552 MB / 0.5574 GB, free: 1.805 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/0.5164, allocations: 0 / 0.5574 GB, free: 1.805 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004461/0.5168, allocations: 84.05 kB / 0.5575 GB, free: 1.723 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002508/0.5193, allocations: 1.093 MB / 0.5586 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001498/0.5195, allocations: 19.98 kB / 0.5586 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01637/0.5359, allocations: 6.825 MB / 0.5653 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/0.5359, allocations: 4.25 kB / 0.5653 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/0.5462, allocations: 3.2 MB / 0.5684 GB, free: 6.391 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006112/0.5468, allocations: 224.3 kB / 0.5686 GB, free: 6.152 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000252/0.5471, allocations: 35.98 kB / 0.5686 GB, free: 6.117 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009202/0.548, allocations: 91.88 kB / 0.5687 GB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004622/0.5485, allocations: 176.2 kB / 0.5689 GB, free: 5.855 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-05/0.5486, allocations: 23.98 kB / 0.5689 GB, free: 5.832 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004753/0.5491, allocations: 326.8 kB / 0.5692 GB, free: 5.516 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5491, allocations: 0 / 0.5692 GB, free: 5.516 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001197/0.5503, allocations: 224 kB / 0.5694 GB, free: 5.297 MB / 430.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.0002669/0.5506, allocations: 139.2 kB / 0.5696 GB, free: 5.152 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005069/0.5557, allocations: 1.731 MB / 0.5713 GB, free: 3.395 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/0.5557, allocations: 0 / 0.5713 GB, free: 3.395 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003441/0.5591, allocations: 1.107 MB / 0.5723 GB, free: 2.273 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.5603, allocations: 171.6 kB / 0.5725 GB, free: 2.105 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003843/0.5642, allocations: 1.752 MB / 0.5742 GB, free: 308 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007745/0.565, allocations: 1.001 MB / 0.5752 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.5652, allocations: 47.42 kB / 0.5752 GB, free: 15.23 MB / 446.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5652, allocations: 0 / 0.5752 GB, free: 15.23 MB / 446.1 MB Notification: Performance of Templates: time 0.02113/0.5863, allocations: 13.5 MB / 0.5884 GB, free: 1.766 MB / 446.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