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.001497/0.001497, allocations: 112.1 kB / 17.06 MB, free: 5.973 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.001484/0.001485, allocations: 200 kB / 18.01 MB, free: 5.055 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.474/1.474, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1876/0.1876, allocations: 38.04 MB / 329.9 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 59.91 kB / 458.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4381/0.4396, allocations: 58.05 MB / 0.5041 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007511/0.4471, allocations: 6.559 MB / 0.5105 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002787/0.45, allocations: 1.657 MB / 0.5121 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004075/0.4504, allocations: 24.38 kB / 0.5121 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005054/0.4509, allocations: 161.8 kB / 0.5123 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008843/0.4519, allocations: 444.8 kB / 0.5127 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007099/0.4526, allocations: 352 kB / 0.5131 GB, free: 1.605 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001617/0.4542, allocations: 1.509 MB / 0.5145 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005054/0.4547, allocations: 404.4 kB / 0.5149 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00109/0.4558, allocations: 0.6144 MB / 0.5155 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009875/0.4568, allocations: 0.6516 MB / 0.5162 GB, free: 284 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001721/0.457, allocations: 98.75 kB / 0.5163 GB, free: 284 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002839/0.4573, allocations: 97.69 kB / 0.5163 GB, free: 284 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004894/0.4578, allocations: 415 kB / 0.5167 GB, free: 124 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006736/0.4585, allocations: 469.4 kB / 0.5172 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001433/0.4599, allocations: 1.181 MB / 0.5183 GB, free: 15.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4599, allocations: 1.438 kB / 0.5183 GB, free: 15.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.4599, allocations: 0 / 0.5183 GB, free: 15.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.46, allocations: 4.828 kB / 0.5183 GB, free: 15.41 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.0027/0.4627, allocations: 1.306 MB / 0.5196 GB, free: 14.6 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.4627, allocations: 12.61 kB / 0.5196 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.4629, allocations: 100.2 kB / 0.5197 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.4644, allocations: 0.7341 MB / 0.5204 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004619/0.4648, allocations: 342 kB / 0.5208 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.465, allocations: 64.78 kB / 0.5208 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.4674, allocations: 1.145 MB / 0.522 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.4674, allocations: 0 / 0.522 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.688e-05/0.4675, allocations: 27.59 kB / 0.522 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/0.4676, allocations: 38.59 kB / 0.522 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002754/0.4704, allocations: 1.175 MB / 0.5232 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005734/0.4761, allocations: 3.483 MB / 0.5266 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002518/0.4787, allocations: 0.9615 MB / 0.5275 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001625/0.4803, allocations: 0.6905 MB / 0.5282 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.086e-05/0.4804, allocations: 5.969 kB / 0.5282 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001515/0.4819, allocations: 0.6787 MB / 0.5288 GB, free: 9.734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 3.807e-06/0.4819, allocations: 4 kB / 0.5289 GB, free: 9.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.01972/0.5017, allocations: 5.665 MB / 0.5344 GB, free: 6.789 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001635/0.5019, allocations: 90.84 kB / 0.5345 GB, free: 6.691 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008522/0.5027, allocations: 471.2 kB / 0.5349 GB, free: 6.406 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001399/0.5029, allocations: 43.17 kB / 0.535 GB, free: 6.363 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004229/0.5033, allocations: 323.1 kB / 0.5353 GB, free: 6.078 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002776/0.5036, allocations: 204.1 kB / 0.5355 GB, free: 5.902 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003229/0.5039, allocations: 133.3 kB / 0.5356 GB, free: 5.824 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.5041, allocations: 373.9 kB / 0.5359 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.5052, allocations: 0.5004 MB / 0.5364 GB, free: 5.223 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/0.5064, allocations: 0.6264 MB / 0.537 GB, free: 4.828 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.007375/0.5138, allocations: 3.131 MB / 0.5401 GB, free: 3.207 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.5138, allocations: 5.312 kB / 0.5401 GB, free: 3.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007025/0.5208, allocations: 2.488 MB / 0.5425 GB, free: 0.707 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.75e-05/0.5209, allocations: 53.69 kB / 0.5426 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.5209, allocations: 4 kB / 0.5426 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002343/0.5233, allocations: 1.087 MB / 0.5437 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004763/0.5238, allocations: 111.8 kB / 0.5438 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01482/0.5386, allocations: 6.863 MB / 0.5505 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008312/0.5395, allocations: 87.95 kB / 0.5505 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/0.5396, allocations: 35.98 kB / 0.5506 GB, free: 8.32 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.000586/0.5402, allocations: 287.4 kB / 0.5509 GB, free: 8.027 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.5404, allocations: 63.23 kB / 0.5509 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007123/0.5475, allocations: 2.429 MB / 0.5533 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.5475, allocations: 8 kB / 0.5533 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.5476, allocations: 0 / 0.5533 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.5476, allocations: 3.984 kB / 0.5533 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009097/0.5567, allocations: 3.56 MB / 0.5568 GB, free: 1.863 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.5567, allocations: 0 / 0.5568 GB, free: 1.863 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000367/0.5571, allocations: 75.89 kB / 0.5568 GB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002386/0.5595, allocations: 1.094 MB / 0.5579 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.978e-05/0.5596, allocations: 19.98 kB / 0.5579 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01485/0.5744, allocations: 6.832 MB / 0.5646 GB, free: 9.699 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.697e-06/0.5745, allocations: 7.984 kB / 0.5646 GB, free: 9.691 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008876/0.5834, allocations: 3.2 MB / 0.5677 GB, free: 6.449 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005171/0.5839, allocations: 216.3 kB / 0.5679 GB, free: 6.219 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001935/0.5841, allocations: 35.97 kB / 0.568 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007458/0.5849, allocations: 95.88 kB / 0.5681 GB, free: 6.09 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004284/0.5853, allocations: 172.2 kB / 0.5682 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.666e-05/0.5854, allocations: 27.92 kB / 0.5683 GB, free: 5.895 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004032/0.5858, allocations: 322.9 kB / 0.5686 GB, free: 5.582 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5858, allocations: 0 / 0.5686 GB, free: 5.582 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009689/0.5868, allocations: 224 kB / 0.5688 GB, free: 5.363 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.000192/0.587, allocations: 135.1 kB / 0.5689 GB, free: 5.223 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004311/0.5913, allocations: 1.723 MB / 0.5706 GB, free: 3.473 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5913, allocations: 4 kB / 0.5706 GB, free: 3.469 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002854/0.5942, allocations: 1.115 MB / 0.5717 GB, free: 2.34 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008898/0.5951, allocations: 169 kB / 0.5719 GB, free: 2.176 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003152/0.5983, allocations: 1.692 MB / 0.5735 GB, free: 448 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006835/0.599, allocations: 1.001 MB / 0.5745 GB, free: 15.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004188/0.5994, allocations: 121.2 kB / 0.5746 GB, free: 15.29 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.5996, allocations: 47.42 kB / 0.5746 GB, free: 15.25 MB / 446.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5996, allocations: 0 / 0.5746 GB, free: 15.25 MB / 446.1 MB Notification: Performance of Templates: time 0.02651/0.6261, allocations: 16.95 MB / 0.5912 GB, free: 14.38 MB / 462.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