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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.00141/0.001411, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.441/1.441, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009574/0.0009578, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1528/0.1528, allocations: 37.98 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.745e-05/2.747e-05, allocations: 0 / 417.7 MB, free: 29.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09663/0.09667, allocations: 56.32 MB / 474.1 MB, free: 4.801 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3815/0.4782, allocations: 111 MB / 0.5714 GB, free: 8.012 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/0.4786, allocations: 88.33 kB / 0.5715 GB, free: 7.969 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06205/0.5406, allocations: 21.83 MB / 0.5928 GB, free: 5.219 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5407, allocations: 4 kB / 0.5928 GB, free: 5.215 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.883e-05/0.5408, allocations: 16 kB / 0.5928 GB, free: 5.199 MB / 394.7 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.001909/0.5427, allocations: 0.9396 MB / 0.5937 GB, free: 4.262 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.5427, allocations: 12.03 kB / 0.5937 GB, free: 4.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006868/0.5434, allocations: 126.9 kB / 0.5938 GB, free: 4.125 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/0.5462, allocations: 1.143 MB / 0.595 GB, free: 3.125 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.5463, allocations: 60.19 kB / 0.595 GB, free: 3.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.5464, allocations: 67.19 kB / 0.5951 GB, free: 3.043 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.5479, allocations: 0.9678 MB / 0.596 GB, free: 2.316 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.548, allocations: 11.98 kB / 0.596 GB, free: 2.305 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.451e-05/0.548, allocations: 26.73 kB / 0.5961 GB, free: 2.297 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001392/0.5482, allocations: 68.39 kB / 0.5961 GB, free: 2.238 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.5496, allocations: 0.9229 MB / 0.597 GB, free: 1.582 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004725/0.5543, allocations: 3.216 MB / 0.6002 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.5554, allocations: 0.698 MB / 0.6009 GB, free: 14.33 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000626/0.5561, allocations: 441.5 kB / 0.6013 GB, free: 14.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.397e-05/0.5561, allocations: 13.44 kB / 0.6013 GB, free: 14.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/0.5562, allocations: 46.67 kB / 0.6013 GB, free: 13.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=77): time 2.455e-06/0.5562, allocations: 0 / 0.6013 GB, free: 13.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=79): time 0.003284/0.5595, allocations: 2.092 MB / 0.6034 GB, free: 12.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.943e-05/0.5596, allocations: 89.66 kB / 0.6035 GB, free: 12.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004051/0.56, allocations: 369.6 kB / 0.6038 GB, free: 11.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.016e-05/0.5601, allocations: 41.38 kB / 0.6039 GB, free: 11.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/0.5603, allocations: 349.8 kB / 0.6042 GB, free: 11.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002037/0.5605, allocations: 269.8 kB / 0.6044 GB, free: 11.33 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.896e-05/0.5605, allocations: 17.19 kB / 0.6045 GB, free: 11.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.5607, allocations: 372 kB / 0.6048 GB, free: 10.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004952/0.5612, allocations: 345.7 kB / 0.6051 GB, free: 10.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006276/0.5619, allocations: 0.5099 MB / 0.6056 GB, free: 10.3 MB / 410.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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.008976/0.5708, allocations: 2.753 MB / 0.6083 GB, free: 7.809 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.5709, allocations: 4 kB / 0.6083 GB, free: 7.805 MB / 410.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001646/0.5725, allocations: 1.096 MB / 0.6094 GB, free: 6.934 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.5726, allocations: 8 kB / 0.6094 GB, free: 6.926 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/0.5726, allocations: 4 kB / 0.6094 GB, free: 6.922 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001618/0.5727, allocations: 39.45 kB / 0.6095 GB, free: 6.887 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007975/0.5736, allocations: 198.4 kB / 0.6096 GB, free: 6.699 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.5749, allocations: 1.391 MB / 0.611 GB, free: 5.254 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004515/0.5753, allocations: 42.89 kB / 0.611 GB, free: 5.223 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.904e-05/0.5754, allocations: 39.61 kB / 0.6111 GB, free: 5.191 MB / 410.7 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (93): * Single equations (assignments): 89 * Array equations: 3 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001903/0.5756, allocations: 160.6 kB / 0.6112 GB, free: 5.051 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.5757, allocations: 59.25 kB / 0.6113 GB, free: 4.992 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.5773, allocations: 1.018 MB / 0.6123 GB, free: 4.227 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-05/0.5774, allocations: 19.98 kB / 0.6123 GB, free: 4.207 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.5774, allocations: 0 / 0.6123 GB, free: 4.207 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.5774, allocations: 0 / 0.6123 GB, free: 4.207 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/0.5808, allocations: 2.078 MB / 0.6143 GB, free: 2.422 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.5808, allocations: 4 kB / 0.6143 GB, free: 2.418 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007498/0.5816, allocations: 171.7 kB / 0.6145 GB, free: 2.254 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001039/0.5817, allocations: 39.09 kB / 0.6145 GB, free: 2.219 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.969e-05/0.5818, allocations: 18.12 kB / 0.6146 GB, free: 2.211 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/0.5829, allocations: 1.384 MB / 0.6159 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.5829, allocations: 4 kB / 0.6159 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/0.5851, allocations: 1.808 MB / 0.6177 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001544/0.5853, allocations: 147.6 kB / 0.6178 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.313e-05/0.5854, allocations: 17.75 kB / 0.6178 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003845/0.5857, allocations: 38.08 kB / 0.6179 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.5859, allocations: 71.38 kB / 0.6179 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.324e-05/0.5859, allocations: 24.25 kB / 0.618 GB, free: 14.87 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003511/0.5863, allocations: 284 kB / 0.6182 GB, free: 14.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5863, allocations: 0 / 0.6182 GB, free: 14.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007783/0.5871, allocations: 211.9 kB / 0.6184 GB, free: 14.41 MB / 426.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * Array equations: 3 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003379/0.5874, allocations: 163 kB / 0.6186 GB, free: 14.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.589, allocations: 0.9668 MB / 0.6195 GB, free: 13.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.589, allocations: 0 / 0.6195 GB, free: 13.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007365/0.5897, allocations: 0.5465 MB / 0.6201 GB, free: 12.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006442/0.5904, allocations: 124.2 kB / 0.6202 GB, free: 12.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00279/0.5932, allocations: 1.695 MB / 0.6218 GB, free: 10.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006804/0.5939, allocations: 1.037 MB / 0.6229 GB, free: 9.742 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006389/0.5945, allocations: 201.3 kB / 0.623 GB, free: 9.543 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001914/0.5947, allocations: 55.42 kB / 0.6231 GB, free: 9.488 MB / 426.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5947, allocations: 0 / 0.6231 GB, free: 9.488 MB / 426.7 MB Notification: Performance of Templates: time 0.01444/0.6092, allocations: 7.581 MB / 0.6305 GB, free: 1.918 MB / 426.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches