Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.InverterAvToGrid,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.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,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.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001424/0.001424, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007946/0.0007947, allocations: 82.12 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1578/0.1578, allocations: 38 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.386e-05/1.39e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 56.34 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.345/0.4464, allocations: 100.3 MB / 0.5539 GB, free: 10.62 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002386/0.4467, allocations: 87.95 kB / 0.554 GB, free: 10.53 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04103/0.4877, allocations: 15.15 MB / 0.5688 GB, free: 11.22 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4877, allocations: 0 / 0.5688 GB, free: 11.22 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.045e-05/0.4878, allocations: 12 kB / 0.5688 GB, free: 11.21 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001299/0.4891, allocations: 0.8063 MB / 0.5696 GB, free: 10.35 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.4891, allocations: 12.03 kB / 0.5696 GB, free: 10.34 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.4893, allocations: 71.11 kB / 0.5697 GB, free: 10.27 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002407/0.4917, allocations: 1.058 MB / 0.5707 GB, free: 9.172 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.4917, allocations: 16 kB / 0.5707 GB, free: 9.156 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.811e-05/0.4918, allocations: 28 kB / 0.5708 GB, free: 9.129 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006936/0.4925, allocations: 478.3 kB / 0.5712 GB, free: 8.66 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007687/0.4933, allocations: 0.5537 MB / 0.5718 GB, free: 8.074 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.4933, allocations: 0.5625 kB / 0.5718 GB, free: 8.074 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.923e-05/0.4933, allocations: 4 kB / 0.5718 GB, free: 8.07 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.4934, allocations: 15.95 kB / 0.5718 GB, free: 8.055 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002711/0.4961, allocations: 2.144 MB / 0.5739 GB, free: 5.828 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006837/0.4968, allocations: 449.3 kB / 0.5743 GB, free: 5.371 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005519/0.4973, allocations: 329.6 kB / 0.5746 GB, free: 5.043 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.4974, allocations: 7.938 kB / 0.5746 GB, free: 5.035 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.4974, allocations: 38.5 kB / 0.5747 GB, free: 4.988 MB / 411.1 MB Notification: Performance of pre-optimization done (n=45): time 1.693e-06/0.4974, allocations: 0 / 0.5747 GB, free: 4.988 MB / 411.1 MB Notification: Performance of matching and sorting (n=47): time 0.001908/0.4993, allocations: 1.253 MB / 0.5759 GB, free: 3.68 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.4994, allocations: 81.11 kB / 0.576 GB, free: 3.582 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.4997, allocations: 333.1 kB / 0.5763 GB, free: 3.25 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.4997, allocations: 29.64 kB / 0.5763 GB, free: 3.215 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.4999, allocations: 292.4 kB / 0.5766 GB, free: 2.926 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.5, allocations: 157.7 kB / 0.5767 GB, free: 2.77 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.208e-05/0.5001, allocations: 4.031 kB / 0.5767 GB, free: 2.766 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5002, allocations: 362.7 kB / 0.5771 GB, free: 2.402 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002289/0.5004, allocations: 169.1 kB / 0.5773 GB, free: 2.238 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/0.5007, allocations: 278.6 kB / 0.5775 GB, free: 1.914 MB / 411.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.001754/0.5025, allocations: 0.7294 MB / 0.5782 GB, free: 1.164 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.5025, allocations: 0 / 0.5782 GB, free: 1.164 MB / 411.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009843/0.5035, allocations: 0.6289 MB / 0.5788 GB, free: 0.5273 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.5035, allocations: 4 kB / 0.5789 GB, free: 0.5234 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.5035, allocations: 7.953 kB / 0.5789 GB, free: 0.5156 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003352/0.5039, allocations: 132.8 kB / 0.579 GB, free: 392 kB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004374/0.5043, allocations: 111.8 kB / 0.5791 GB, free: 280 kB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002344/0.5067, allocations: 2.249 MB / 0.5813 GB, free: 13.91 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.5069, allocations: 16.03 kB / 0.5813 GB, free: 13.89 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.554e-05/0.507, allocations: 20 kB / 0.5813 GB, free: 13.87 MB / 427.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001315/0.5071, allocations: 134.7 kB / 0.5815 GB, free: 13.73 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.052e-05/0.5072, allocations: 47.39 kB / 0.5815 GB, free: 13.69 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009551/0.5082, allocations: 0.5878 MB / 0.5821 GB, free: 13.09 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.5082, allocations: 11.92 kB / 0.5821 GB, free: 13.08 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.5082, allocations: 4 kB / 0.5821 GB, free: 13.07 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.5082, allocations: 0 / 0.5821 GB, free: 13.07 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001754/0.51, allocations: 1.241 MB / 0.5833 GB, free: 11.76 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.51, allocations: 4 kB / 0.5833 GB, free: 11.75 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.5103, allocations: 71.89 kB / 0.5834 GB, free: 11.68 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003538/0.5107, allocations: 132.7 kB / 0.5835 GB, free: 11.55 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.281e-05/0.5107, allocations: 8 kB / 0.5835 GB, free: 11.54 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002189/0.5129, allocations: 2.251 MB / 0.5857 GB, free: 9.176 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.513, allocations: 3.938 kB / 0.5857 GB, free: 9.172 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.5142, allocations: 0.9834 MB / 0.5867 GB, free: 8.117 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.655e-05/0.5143, allocations: 124.5 kB / 0.5868 GB, free: 7.977 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.152e-05/0.5143, allocations: 4 kB / 0.5868 GB, free: 7.973 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.5146, allocations: 7.984 kB / 0.5868 GB, free: 7.965 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.831e-05/0.5147, allocations: 43.66 kB / 0.5868 GB, free: 7.922 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.03e-05/0.5147, allocations: 23.98 kB / 0.5869 GB, free: 7.898 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.000233/0.5149, allocations: 254.9 kB / 0.5871 GB, free: 7.652 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5149, allocations: 0 / 0.5871 GB, free: 7.652 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0006103/0.5156, allocations: 132 kB / 0.5872 GB, free: 7.523 MB / 427.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: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000205/0.5158, allocations: 119.1 kB / 0.5873 GB, free: 7.398 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.000957/0.5167, allocations: 0.5919 MB / 0.5879 GB, free: 6.793 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5168, allocations: 0 / 0.5879 GB, free: 6.793 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000557/0.5173, allocations: 402.7 kB / 0.5883 GB, free: 6.391 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005725/0.5179, allocations: 93.75 kB / 0.5884 GB, free: 6.297 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.5194, allocations: 0.9925 MB / 0.5894 GB, free: 5.254 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.5199, allocations: 0.9447 MB / 0.5903 GB, free: 4.281 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0003085/0.5202, allocations: 100.6 kB / 0.5904 GB, free: 4.184 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.89e-05/0.5203, allocations: 39.42 kB / 0.5904 GB, free: 4.145 MB / 427.1 MB Notification: Performance of SimCode: time 2.61e-07/0.5203, allocations: 0 / 0.5904 GB, free: 4.145 MB / 427.1 MB Notification: Performance of Templates: time 0.0104/0.5307, allocations: 5.764 MB / 0.5961 GB, free: 14.39 MB / 443.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches