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.001389/0.001389, allocations: 176.2 kB / 17.4 MB, free: 4.418 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.554/1.554, allocations: 205.4 MB / 223.5 MB, free: 9.027 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.0009019/0.0009019, allocations: 90.34 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1654/0.1654, allocations: 38.07 MB / 358.2 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005477/0.0005478, allocations: 12 kB / 425.3 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3633, allocations: 56.31 MB / 481.6 MB, free: 9.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1611/0.5245, allocations: 111.2 MB / 0.5788 GB, free: 7.078 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003086/0.5248, allocations: 103.8 kB / 0.5789 GB, free: 6.98 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06584/0.5907, allocations: 21.85 MB / 0.6003 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.5907, allocations: 0 / 0.6003 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.461e-05/0.5908, allocations: 23.98 kB / 0.6003 GB, free: 0.8477 MB / 426.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.003023/0.5938, allocations: 1.005 MB / 0.6013 GB, free: 15.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.5939, allocations: 12.03 kB / 0.6013 GB, free: 15.78 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008928/0.5948, allocations: 127.8 kB / 0.6014 GB, free: 15.65 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002089/0.5969, allocations: 0.8183 MB / 0.6022 GB, free: 14.79 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.518e-05/0.597, allocations: 50.44 kB / 0.6022 GB, free: 14.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002837/0.5973, allocations: 67.98 kB / 0.6023 GB, free: 14.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001994/0.5993, allocations: 1.003 MB / 0.6033 GB, free: 13.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.882e-05/0.5993, allocations: 0 / 0.6033 GB, free: 13.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8e-05/0.5994, allocations: 31.97 kB / 0.6033 GB, free: 13.61 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001509/0.5996, allocations: 65.27 kB / 0.6034 GB, free: 13.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.6011, allocations: 0.9425 MB / 0.6043 GB, free: 12.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004867/0.606, allocations: 3.213 MB / 0.6074 GB, free: 9.273 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.6071, allocations: 0.6898 MB / 0.6081 GB, free: 8.566 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006498/0.6078, allocations: 455.4 kB / 0.6085 GB, free: 8.117 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.063e-05/0.6078, allocations: 4.562 kB / 0.6086 GB, free: 8.109 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.6079, allocations: 39.12 kB / 0.6086 GB, free: 8.062 MB / 442.7 MB Notification: Performance of pre-optimization done (n=77): time 3.677e-06/0.6079, allocations: 0 / 0.6086 GB, free: 8.062 MB / 442.7 MB Notification: Performance of matching and sorting (n=79): time 0.004345/0.6122, allocations: 2.542 MB / 0.6111 GB, free: 5.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.6123, allocations: 85.67 kB / 0.6112 GB, free: 5.328 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005453/0.6129, allocations: 429.8 kB / 0.6116 GB, free: 4.895 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.028e-05/0.6129, allocations: 37.69 kB / 0.6116 GB, free: 4.852 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002614/0.6132, allocations: 348 kB / 0.6119 GB, free: 4.504 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002746/0.6135, allocations: 275.9 kB / 0.6122 GB, free: 4.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.6135, allocations: 16 kB / 0.6122 GB, free: 4.215 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.6137, allocations: 374.8 kB / 0.6126 GB, free: 3.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005516/0.6143, allocations: 353.8 kB / 0.6129 GB, free: 3.496 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006826/0.615, allocations: 0.5199 MB / 0.6134 GB, free: 2.918 MB / 442.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.009408/0.6244, allocations: 3.565 MB / 0.6169 GB, free: 15.26 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.6244, allocations: 0 / 0.6169 GB, free: 15.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001866/0.6263, allocations: 1.117 MB / 0.618 GB, free: 14.12 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.6264, allocations: 10.5 kB / 0.618 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.6264, allocations: 4 kB / 0.618 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000188/0.6266, allocations: 49.36 kB / 0.618 GB, free: 14.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007584/0.6274, allocations: 183.7 kB / 0.6182 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001362/0.6287, allocations: 1.401 MB / 0.6196 GB, free: 12.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005998/0.6293, allocations: 39.95 kB / 0.6196 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.674e-05/0.6294, allocations: 28 kB / 0.6197 GB, free: 12.27 MB / 458.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 () * Number of clocked 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.0005528/0.63, allocations: 277.5 kB / 0.6199 GB, free: 11.99 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.6302, allocations: 59.19 kB / 0.62 GB, free: 11.93 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001778/0.632, allocations: 1.021 MB / 0.621 GB, free: 10.88 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.471e-05/0.632, allocations: 19.98 kB / 0.621 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.632, allocations: 4 kB / 0.621 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.632, allocations: 3.984 kB / 0.621 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003908/0.636, allocations: 2.085 MB / 0.623 GB, free: 8.633 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.636, allocations: 4 kB / 0.623 GB, free: 8.629 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006817/0.6367, allocations: 155.8 kB / 0.6232 GB, free: 8.477 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001333/0.6368, allocations: 40.78 kB / 0.6232 GB, free: 8.434 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.72e-05/0.6369, allocations: 27.97 kB / 0.6233 GB, free: 8.406 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001181/0.6381, allocations: 1.39 MB / 0.6246 GB, free: 6.887 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.6381, allocations: 4 kB / 0.6246 GB, free: 6.883 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/0.6403, allocations: 1.615 MB / 0.6262 GB, free: 5.172 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.6406, allocations: 144.2 kB / 0.6263 GB, free: 5.012 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.6407, allocations: 20 kB / 0.6263 GB, free: 4.992 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004127/0.6411, allocations: 43.89 kB / 0.6264 GB, free: 4.949 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.6412, allocations: 60.38 kB / 0.6264 GB, free: 4.891 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.333e-05/0.6413, allocations: 27.98 kB / 0.6265 GB, free: 4.863 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003682/0.6417, allocations: 287.1 kB / 0.6267 GB, free: 4.582 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6417, allocations: 0 / 0.6267 GB, free: 4.582 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0008942/0.6426, allocations: 208 kB / 0.6269 GB, free: 4.379 MB / 458.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 () * Number of clocked 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.0003784/0.643, allocations: 170.9 kB / 0.6271 GB, free: 4.203 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.6447, allocations: 0.9782 MB / 0.6281 GB, free: 3.211 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.6447, allocations: 256 / 0.6281 GB, free: 3.211 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007722/0.6455, allocations: 0.5562 MB / 0.6286 GB, free: 2.641 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.6466, allocations: 139.5 kB / 0.6287 GB, free: 2.508 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003572/0.6502, allocations: 2.4 MB / 0.6311 GB, free: 24 kB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008022/0.651, allocations: 1.017 MB / 0.6321 GB, free: 14.98 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006777/0.6517, allocations: 193.3 kB / 0.6323 GB, free: 14.79 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002156/0.6519, allocations: 63.42 kB / 0.6323 GB, free: 14.72 MB / 474.7 MB Notification: Performance of SimCode: time 5.01e-07/0.652, allocations: 0 / 0.6323 GB, free: 14.72 MB / 474.7 MB Notification: Performance of Templates: time 0.01514/0.6671, allocations: 7.612 MB / 0.6398 GB, free: 7.125 MB / 474.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/jenkins1/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