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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 183.4 kB / 8.135 MB, free: 2.219 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.276/1.276, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.0009242/0.0009243, allocations: 98.95 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1615/0.1615, allocations: 37.97 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.102e-06/6.132e-06, allocations: 0 / 410 MB, free: 46.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1014, allocations: 56.31 MB / 466.3 MB, free: 6.453 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3018/0.4032, allocations: 110.3 MB / 0.5632 GB, free: 244 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.4035, allocations: 89.77 kB / 0.5632 GB, free: 156 kB / 394.7 MB Notification: Performance of FrontEnd: time 0.1099/0.5134, allocations: 21.31 MB / 0.5841 GB, free: 10.59 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.017e-05/0.5135, allocations: 19.94 kB / 0.5841 GB, free: 10.57 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.002168/0.5157, allocations: 0.9423 MB / 0.585 GB, free: 9.582 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.5157, allocations: 8.031 kB / 0.585 GB, free: 9.574 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007128/0.5165, allocations: 130.9 kB / 0.5851 GB, free: 9.445 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003133/0.5196, allocations: 1.14 MB / 0.5862 GB, free: 8.266 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.5197, allocations: 20 kB / 0.5863 GB, free: 8.246 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.5198, allocations: 44 kB / 0.5863 GB, free: 8.203 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00127/0.5211, allocations: 0.7607 MB / 0.587 GB, free: 7.441 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.5225, allocations: 0.9105 MB / 0.5879 GB, free: 6.488 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/0.5226, allocations: 3.938 kB / 0.5879 GB, free: 6.484 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.629e-05/0.5226, allocations: 4 kB / 0.5879 GB, free: 6.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001448/0.5228, allocations: 73.17 kB / 0.588 GB, free: 6.41 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005194/0.528, allocations: 3.124 MB / 0.5911 GB, free: 3.184 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.5291, allocations: 0.6909 MB / 0.5917 GB, free: 2.477 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006269/0.5297, allocations: 467.6 kB / 0.5922 GB, free: 2.016 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.76e-05/0.5298, allocations: 12.66 kB / 0.5922 GB, free: 2.004 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.5298, allocations: 51.06 kB / 0.5922 GB, free: 1.941 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 3.125e-06/0.5298, allocations: 0 / 0.5922 GB, free: 1.941 MB / 426.7 MB Notification: Performance of matching and sorting (n=79): time 0.004671/0.5345, allocations: 2.46 MB / 0.5946 GB, free: 15.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.5346, allocations: 85.77 kB / 0.5947 GB, free: 15.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000367/0.5349, allocations: 329 kB / 0.595 GB, free: 14.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.634e-05/0.535, allocations: 29.73 kB / 0.5951 GB, free: 14.94 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.5352, allocations: 291.8 kB / 0.5954 GB, free: 14.65 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.5354, allocations: 268 kB / 0.5956 GB, free: 14.38 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.813e-05/0.5354, allocations: 0 / 0.5956 GB, free: 14.38 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.5356, allocations: 374.8 kB / 0.596 GB, free: 14.01 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005279/0.5361, allocations: 365.6 kB / 0.5963 GB, free: 13.65 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006011/0.5367, allocations: 0.522 MB / 0.5968 GB, free: 13.07 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.009334/0.546, allocations: 2.382 MB / 0.5991 GB, free: 10.66 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.5461, allocations: 0 / 0.5991 GB, free: 10.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002217/0.5483, allocations: 1.226 MB / 0.6003 GB, free: 9.414 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.5483, allocations: 4 kB / 0.6003 GB, free: 9.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.5483, allocations: 8 kB / 0.6004 GB, free: 9.402 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001502/0.5485, allocations: 36.78 kB / 0.6004 GB, free: 9.363 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008808/0.5494, allocations: 191.8 kB / 0.6006 GB, free: 9.176 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.5505, allocations: 1.311 MB / 0.6019 GB, free: 7.746 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005138/0.551, allocations: 20.02 kB / 0.6019 GB, free: 7.727 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.187e-05/0.5511, allocations: 32 kB / 0.6019 GB, free: 7.695 MB / 442.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: 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.0001726/0.5512, allocations: 124.8 kB / 0.602 GB, free: 7.566 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.5514, allocations: 59.25 kB / 0.6021 GB, free: 7.508 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002074/0.5534, allocations: 1.156 MB / 0.6032 GB, free: 6.316 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-05/0.5535, allocations: 19.98 kB / 0.6032 GB, free: 6.297 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.5535, allocations: 3.938 kB / 0.6032 GB, free: 6.293 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.5536, allocations: 7.984 kB / 0.6032 GB, free: 6.285 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003865/0.5574, allocations: 2.076 MB / 0.6053 GB, free: 4.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/0.5575, allocations: 4.062 kB / 0.6053 GB, free: 4.086 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008183/0.5583, allocations: 155.8 kB / 0.6054 GB, free: 3.934 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000144/0.5584, allocations: 36.84 kB / 0.6055 GB, free: 3.895 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.807e-05/0.5585, allocations: 23.83 kB / 0.6055 GB, free: 3.871 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009549/0.5595, allocations: 1.303 MB / 0.6067 GB, free: 2.453 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/0.5595, allocations: 11.94 kB / 0.6068 GB, free: 2.441 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002533/0.562, allocations: 1.935 MB / 0.6086 GB, free: 300 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001545/0.5622, allocations: 140.3 kB / 0.6088 GB, free: 140 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.5623, allocations: 8 kB / 0.6088 GB, free: 132 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000445/0.5628, allocations: 23.97 kB / 0.6088 GB, free: 108 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.892e-05/0.5629, allocations: 52.28 kB / 0.6089 GB, free: 56 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.437e-05/0.5629, allocations: 24 kB / 0.6089 GB, free: 32 kB / 442.7 MB Notification: Performance of sort global known variables: time 0.0002905/0.5632, allocations: 247.2 kB / 0.6091 GB, free: 15.79 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000746/0.564, allocations: 175.9 kB / 0.6093 GB, free: 15.62 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 () * 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.0002702/0.5643, allocations: 156.8 kB / 0.6094 GB, free: 15.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.5658, allocations: 0.99 MB / 0.6104 GB, free: 14.45 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5658, allocations: 0 / 0.6104 GB, free: 14.45 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000782/0.5666, allocations: 0.5463 MB / 0.6109 GB, free: 13.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006088/0.5672, allocations: 110.9 kB / 0.611 GB, free: 13.79 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002696/0.57, allocations: 1.663 MB / 0.6127 GB, free: 12.04 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008613/0.5708, allocations: 1.094 MB / 0.6137 GB, free: 10.92 MB / 458.7 MB Notification: Performance of SimCode: time 4.6e-07/0.5708, allocations: 0 / 0.6137 GB, free: 10.92 MB / 458.7 MB Notification: Performance of Templates: time 0.01541/0.5863, allocations: 8.297 MB / 0.6218 GB, free: 2.633 MB / 458.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