Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 109.8 kB / 17.74 MB, free: 5.359 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.001378/0.001378, allocations: 181.5 kB / 18.66 MB, free: 4.445 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.338/1.338, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1882/0.1882, allocations: 38.04 MB / 330.6 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 59.91 kB / 458.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3499, allocations: 58.05 MB / 0.5048 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007422/0.3574, allocations: 6.48 MB / 0.5111 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003354/0.3608, allocations: 1.88 MB / 0.5129 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005149/0.3613, allocations: 29.28 kB / 0.513 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.3627, allocations: 450.1 kB / 0.5134 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.3637, allocations: 413.6 kB / 0.5138 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.3648, allocations: 354.8 kB / 0.5141 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001383/0.3662, allocations: 1.029 MB / 0.5151 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007404/0.3669, allocations: 0.4967 MB / 0.5156 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007845/0.3677, allocations: 476.2 kB / 0.5161 GB, free: 448 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008612/0.3686, allocations: 0.5693 MB / 0.5166 GB, free: 236 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001259/0.3687, allocations: 66.41 kB / 0.5167 GB, free: 236 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006364/0.3694, allocations: 259.8 kB / 0.5169 GB, free: 172 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000496/0.3699, allocations: 366.2 kB / 0.5173 GB, free: 44 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005574/0.3704, allocations: 424.4 kB / 0.5177 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001596/0.372, allocations: 1.039 MB / 0.5187 GB, free: 15.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3721, allocations: 4 kB / 0.5187 GB, free: 15.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3721, allocations: 1.125 kB / 0.5187 GB, free: 15.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.3721, allocations: 0 / 0.5187 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002496/0.3746, allocations: 1.127 MB / 0.5198 GB, free: 14.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.3746, allocations: 13.48 kB / 0.5198 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007675/0.3754, allocations: 126.4 kB / 0.5199 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.3766, allocations: 0.6107 MB / 0.5205 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.564e-05/0.3766, allocations: 48.09 kB / 0.5206 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.3768, allocations: 71.28 kB / 0.5206 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.3785, allocations: 1.014 MB / 0.5216 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.3786, allocations: 4.875 kB / 0.5216 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.724e-05/0.3786, allocations: 27.22 kB / 0.5217 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002175/0.3789, allocations: 72.47 kB / 0.5217 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.3807, allocations: 0.9836 MB / 0.5227 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005609/0.3863, allocations: 3.251 MB / 0.5259 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.3875, allocations: 0.6899 MB / 0.5265 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006528/0.3882, allocations: 425.6 kB / 0.5269 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.557e-05/0.3883, allocations: 16.64 kB / 0.527 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.3883, allocations: 43.16 kB / 0.527 GB, free: 10.99 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 3.326e-06/0.3883, allocations: 0 / 0.527 GB, free: 10.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=75): time 0.004213/0.3925, allocations: 2.434 MB / 0.5294 GB, free: 9.707 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.3926, allocations: 84.17 kB / 0.5295 GB, free: 9.613 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005649/0.3932, allocations: 444.8 kB / 0.5299 GB, free: 9.402 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.544e-05/0.3933, allocations: 35.45 kB / 0.5299 GB, free: 9.363 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002613/0.3935, allocations: 355.3 kB / 0.5303 GB, free: 9.078 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002359/0.3938, allocations: 263.6 kB / 0.5305 GB, free: 8.871 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002372/0.394, allocations: 150.7 kB / 0.5307 GB, free: 8.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.3942, allocations: 379.5 kB / 0.531 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005486/0.3947, allocations: 344.3 kB / 0.5313 GB, free: 8.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006502/0.3954, allocations: 0.5171 MB / 0.5318 GB, free: 7.914 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005137/0.4005, allocations: 2.238 MB / 0.534 GB, free: 6.641 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.4006, allocations: 1.688 kB / 0.534 GB, free: 6.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001757/0.4023, allocations: 1.106 MB / 0.5351 GB, free: 6.031 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.4024, allocations: 6.969 kB / 0.5351 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.4024, allocations: 9.969 kB / 0.5351 GB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001539/0.4026, allocations: 38.66 kB / 0.5352 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007691/0.4033, allocations: 195.4 kB / 0.5354 GB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.4046, allocations: 1.493 MB / 0.5368 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005502/0.4052, allocations: 35.19 kB / 0.5368 GB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.472e-05/0.4052, allocations: 36.5 kB / 0.5369 GB, free: 4.418 MB / 398.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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 92 * Array equations: 2 * Algorithm blocks: 0 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004993/0.4058, allocations: 286.6 kB / 0.5372 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.4059, allocations: 60.78 kB / 0.5372 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001577/0.4075, allocations: 0.9626 MB / 0.5382 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-05/0.4075, allocations: 18.55 kB / 0.5382 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4076, allocations: 5.094 kB / 0.5382 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.4076, allocations: 7.922 kB / 0.5382 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003349/0.4109, allocations: 2.004 MB / 0.5401 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.4109, allocations: 7.844 kB / 0.5401 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006731/0.4116, allocations: 147.3 kB / 0.5403 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001229/0.4118, allocations: 37.94 kB / 0.5403 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.798e-05/0.4118, allocations: 22.12 kB / 0.5403 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.413, allocations: 1.501 MB / 0.5418 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/0.413, allocations: 9.438 kB / 0.5418 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002055/0.415, allocations: 1.53 MB / 0.5433 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.4153, allocations: 134 kB / 0.5434 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.737e-05/0.4154, allocations: 27.14 kB / 0.5435 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003652/0.4157, allocations: 38.44 kB / 0.5435 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.4159, allocations: 58.59 kB / 0.5436 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-05/0.4159, allocations: 26.48 kB / 0.5436 GB, free: 15.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004058/0.4163, allocations: 299.3 kB / 0.5439 GB, free: 15.22 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4163, allocations: 1.125 kB / 0.5439 GB, free: 15.22 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009323/0.4173, allocations: 183.7 kB / 0.544 GB, free: 15.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002964/0.4176, allocations: 163 kB / 0.5442 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.4191, allocations: 0.965 MB / 0.5451 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.4191, allocations: 1.438 kB / 0.5451 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006483/0.4198, allocations: 0.5258 MB / 0.5457 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008884/0.4207, allocations: 148.8 kB / 0.5458 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.4237, allocations: 2.026 MB / 0.5478 GB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006266/0.4244, allocations: 1.016 MB / 0.5488 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002473/0.4246, allocations: 67.42 kB / 0.5488 GB, free: 10.13 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4247, allocations: 0 / 0.5488 GB, free: 10.13 MB / 414.1 MB Notification: Performance of Templates: time 0.01631/0.441, allocations: 12.11 MB / 0.5607 GB, free: 14.04 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches