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.001064/0.001064, allocations: 180.7 kB / 16.38 MB, free: 5.762 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.355/1.355, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007588/0.0007588, allocations: 98.52 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1634/0.1634, allocations: 38.05 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002895/0.0002895, allocations: 11.98 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2781, allocations: 56.31 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1441/0.4223, allocations: 111.1 MB / 0.5776 GB, free: 7.258 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.4226, allocations: 95.95 kB / 0.5777 GB, free: 7.164 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05976/0.4823, allocations: 21.86 MB / 0.599 GB, free: 1.043 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4824, allocations: 0 / 0.599 GB, free: 1.043 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.253e-05/0.4824, allocations: 20 kB / 0.599 GB, free: 1.023 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.002163/0.4846, allocations: 1.024 MB / 0.6 GB, free: 15.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.4847, allocations: 8.031 kB / 0.6 GB, free: 15.94 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006691/0.4853, allocations: 126.9 kB / 0.6002 GB, free: 15.81 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00281/0.4882, allocations: 1.152 MB / 0.6013 GB, free: 14.62 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.85e-05/0.4882, allocations: 57.2 kB / 0.6013 GB, free: 14.57 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.4884, allocations: 67.89 kB / 0.6014 GB, free: 14.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.4899, allocations: 0.9949 MB / 0.6024 GB, free: 13.46 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.4899, allocations: 0 / 0.6024 GB, free: 13.46 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.157e-05/0.49, allocations: 31.98 kB / 0.6024 GB, free: 13.43 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000127/0.4901, allocations: 65.27 kB / 0.6025 GB, free: 13.37 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.4915, allocations: 0.9426 MB / 0.6034 GB, free: 12.43 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004641/0.4962, allocations: 3.205 MB / 0.6065 GB, free: 9.109 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.4972, allocations: 0.714 MB / 0.6072 GB, free: 8.375 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.121e-05/0.4973, allocations: 8.625 kB / 0.6072 GB, free: 8.367 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.4973, allocations: 51.06 kB / 0.6073 GB, free: 8.309 MB / 442.7 MB Notification: Performance of pre-optimization done (n=77): time 1.974e-06/0.4973, allocations: 0 / 0.6073 GB, free: 8.309 MB / 442.7 MB Notification: Performance of matching and sorting (n=79): time 0.003673/0.501, allocations: 2.76 MB / 0.61 GB, free: 5.398 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.5011, allocations: 97.72 kB / 0.6101 GB, free: 5.285 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003768/0.5015, allocations: 376.9 kB / 0.6104 GB, free: 4.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.722e-05/0.5015, allocations: 37.7 kB / 0.6105 GB, free: 4.867 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.5017, allocations: 347.8 kB / 0.6108 GB, free: 4.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/0.502, allocations: 280 kB / 0.611 GB, free: 4.242 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.511e-05/0.502, allocations: 12 kB / 0.6111 GB, free: 4.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.5021, allocations: 374.8 kB / 0.6114 GB, free: 3.855 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004843/0.5026, allocations: 349.8 kB / 0.6118 GB, free: 3.516 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005816/0.5032, allocations: 0.5205 MB / 0.6123 GB, free: 2.938 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.008331/0.5116, allocations: 2.722 MB / 0.6149 GB, free: 200 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.5116, allocations: 0 / 0.6149 GB, free: 200 kB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001579/0.5132, allocations: 1.102 MB / 0.616 GB, free: 15.06 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.5132, allocations: 8.094 kB / 0.616 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.5132, allocations: 8 kB / 0.616 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001375/0.5134, allocations: 28.84 kB / 0.616 GB, free: 15.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000787/0.5142, allocations: 199.7 kB / 0.6162 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008877/0.5151, allocations: 1.342 MB / 0.6175 GB, free: 13.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004747/0.5155, allocations: 47.8 kB / 0.6176 GB, free: 13.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.491e-05/0.5156, allocations: 32 kB / 0.6176 GB, free: 13.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 (94): * Single equations (assignments): 90 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004309/0.5161, allocations: 273.2 kB / 0.6179 GB, free: 13 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.738e-05/0.5162, allocations: 59.25 kB / 0.6179 GB, free: 12.94 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001443/0.5176, allocations: 1.021 MB / 0.6189 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.131e-05/0.5177, allocations: 23.94 kB / 0.619 GB, free: 11.86 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.5177, allocations: 0 / 0.619 GB, free: 11.86 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.5177, allocations: 11.98 kB / 0.619 GB, free: 11.85 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003152/0.5208, allocations: 2.061 MB / 0.621 GB, free: 9.652 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.5209, allocations: 4 kB / 0.621 GB, free: 9.648 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007186/0.5216, allocations: 167.8 kB / 0.6211 GB, free: 9.484 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-05/0.5217, allocations: 33.34 kB / 0.6212 GB, free: 9.449 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.966e-05/0.5217, allocations: 20 kB / 0.6212 GB, free: 9.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008637/0.5226, allocations: 1.335 MB / 0.6225 GB, free: 7.961 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.5226, allocations: 8.25 kB / 0.6225 GB, free: 7.953 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.5246, allocations: 1.83 MB / 0.6243 GB, free: 5.914 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.5247, allocations: 140.3 kB / 0.6244 GB, free: 5.758 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.815e-05/0.5248, allocations: 20 kB / 0.6244 GB, free: 5.738 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003639/0.5252, allocations: 39.95 kB / 0.6245 GB, free: 5.699 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.756e-05/0.5253, allocations: 64.39 kB / 0.6245 GB, free: 5.637 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.065e-05/0.5254, allocations: 27.98 kB / 0.6246 GB, free: 5.609 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003027/0.5257, allocations: 283.1 kB / 0.6248 GB, free: 5.332 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.733e-06/0.5257, allocations: 0 / 0.6248 GB, free: 5.332 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0007011/0.5264, allocations: 207.9 kB / 0.625 GB, free: 5.129 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 (77): * Single equations (assignments): 72 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002824/0.5267, allocations: 171 kB / 0.6252 GB, free: 4.953 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.5281, allocations: 0.9783 MB / 0.6262 GB, free: 3.957 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.5281, allocations: 0 / 0.6262 GB, free: 3.957 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006366/0.5287, allocations: 0.538 MB / 0.6267 GB, free: 3.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006113/0.5294, allocations: 136.4 kB / 0.6268 GB, free: 3.277 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00319/0.5326, allocations: 2.393 MB / 0.6291 GB, free: 0.8008 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006212/0.5332, allocations: 1.029 MB / 0.6302 GB, free: 15.74 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005817/0.5338, allocations: 217.2 kB / 0.6304 GB, free: 15.53 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.534, allocations: 59.42 kB / 0.6304 GB, free: 15.47 MB / 474.7 MB Notification: Performance of SimCode: time 5.61e-07/0.534, allocations: 0 / 0.6304 GB, free: 15.47 MB / 474.7 MB Notification: Performance of Templates: time 0.01373/0.5477, allocations: 7.446 MB / 0.6377 GB, free: 8.039 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/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