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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00074/0.0007401, allocations: 89.62 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008037/0.0008039, allocations: 182.1 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.208/1.208, allocations: 223.3 MB / 241.6 MB, free: 104 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1574/0.1574, allocations: 38.08 MB / 330.8 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002745/0.0002745, allocations: 12 kB / 400.7 MB, free: 34.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1053, allocations: 59.16 MB / 459.9 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007528/0.1129, allocations: 7.294 MB / 467.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003959/0.1169, allocations: 2.228 MB / 469.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006619/0.1176, allocations: 51.69 kB / 469.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005334/0.1181, allocations: 135 kB / 469.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009897/0.1191, allocations: 386.3 kB / 470 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007784/0.1199, allocations: 315.5 kB / 470.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001221/0.1212, allocations: 1.516 MB / 471.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008832/0.1221, allocations: 0.6803 MB / 472.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004476/0.1225, allocations: 374.2 kB / 472.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006493/0.1232, allocations: 0.5645 MB / 473.4 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.372e-05/0.1233, allocations: 32 kB / 473.4 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004267/0.1237, allocations: 259.5 kB / 473.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002744/0.124, allocations: 335.1 kB / 474 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003911/0.1244, allocations: 403.6 kB / 474.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007893/0.1252, allocations: 0.9887 MB / 475.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1252, allocations: 0 / 475.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1252, allocations: 0 / 475.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1252, allocations: 4 kB / 475.4 MB, free: 7.441 MB / 350.1 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.001717/0.1269, allocations: 0.9805 MB / 476.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.127, allocations: 12.02 kB / 476.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006936/0.1277, allocations: 123.8 kB / 476.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008732/0.1286, allocations: 0.5805 MB / 477.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.1286, allocations: 49.67 kB / 477.1 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001801/0.1288, allocations: 72.12 kB / 477.2 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.1302, allocations: 1.014 MB / 478.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.1303, allocations: 0 / 478.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.859e-05/0.1303, allocations: 28 kB / 478.3 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001994/0.1306, allocations: 69.95 kB / 478.3 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001398/0.132, allocations: 0.9797 MB / 479.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004458/0.1364, allocations: 3.279 MB / 482.6 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.1375, allocations: 0.6917 MB / 483.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006036/0.1381, allocations: 427.5 kB / 483.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.132e-05/0.1381, allocations: 17.47 kB / 483.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.1382, allocations: 43.12 kB / 483.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.866e-06/0.1382, allocations: 0 / 483.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=75): time 0.003657/0.1419, allocations: 2.427 MB / 486.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.1419, allocations: 85.67 kB / 486.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000444/0.1424, allocations: 445.8 kB / 486.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.457e-05/0.1424, allocations: 37.7 kB / 486.7 MB, free: 11.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/0.1426, allocations: 347.6 kB / 487.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.1428, allocations: 264.2 kB / 487.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.742e-05/0.1429, allocations: 77.56 kB / 487.4 MB, free: 11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1431, allocations: 382.7 kB / 487.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004779/0.1436, allocations: 345.8 kB / 488.1 MB, free: 10.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000578/0.1442, allocations: 0.5147 MB / 488.6 MB, free: 9.699 MB / 366.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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.00483/0.149, allocations: 2.247 MB / 490.9 MB, free: 7.363 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.149, allocations: 0 / 490.9 MB, free: 7.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001544/0.1506, allocations: 1.094 MB / 492 MB, free: 6.242 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.1506, allocations: 12 kB / 492 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.1506, allocations: 4 kB / 492 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001412/0.1507, allocations: 40.83 kB / 492 MB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006917/0.1514, allocations: 191.6 kB / 492.2 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.1526, allocations: 1.393 MB / 493.6 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003877/0.153, allocations: 35.97 kB / 493.6 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.066e-05/0.153, allocations: 32 kB / 493.7 MB, free: 4.398 MB / 366.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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003606/0.1534, allocations: 269.5 kB / 493.9 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.1535, allocations: 75.39 kB / 494 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001377/0.1549, allocations: 0.9738 MB / 495 MB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/0.1549, allocations: 12 kB / 495 MB, free: 3.035 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.1549, allocations: 4 kB / 495 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.155, allocations: 7.922 kB / 495 MB, free: 3.023 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.1579, allocations: 2.008 MB / 497 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.1579, allocations: 7.938 kB / 497 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006235/0.1586, allocations: 155.8 kB / 497.2 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000102/0.1587, allocations: 32.84 kB / 497.2 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.569e-05/0.1587, allocations: 20.55 kB / 497.2 MB, free: 0.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009941/0.1597, allocations: 1.386 MB / 498.6 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.1598, allocations: 11.88 kB / 498.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.1616, allocations: 1.529 MB / 0.4884 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.1618, allocations: 144.3 kB / 0.4886 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.309e-05/0.1619, allocations: 19.98 kB / 0.4886 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003395/0.1623, allocations: 35.97 kB / 0.4886 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.1624, allocations: 68.36 kB / 0.4887 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.804e-05/0.1624, allocations: 27.92 kB / 0.4887 GB, free: 13.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003571/0.1628, allocations: 303.1 kB / 0.489 GB, free: 12.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1628, allocations: 0 / 0.489 GB, free: 12.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007265/0.1635, allocations: 180 kB / 0.4892 GB, free: 12.73 MB / 382.1 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 (75): * Single equations (assignments): 71 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002708/0.1638, allocations: 162.3 kB / 0.4893 GB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.1651, allocations: 0.9463 MB / 0.4903 GB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.1651, allocations: 11.94 kB / 0.4903 GB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006488/0.1658, allocations: 0.5147 MB / 0.4908 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.1668, allocations: 141.3 kB / 0.4909 GB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002849/0.1697, allocations: 2.43 MB / 0.4933 GB, free: 8.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006023/0.1703, allocations: 1.013 MB / 0.4943 GB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005246/0.1708, allocations: 201.4 kB / 0.4945 GB, free: 7.172 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.171, allocations: 59.42 kB / 0.4945 GB, free: 7.113 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.171, allocations: 0 / 0.4945 GB, free: 7.113 MB / 382.1 MB Notification: Performance of Templates: time 0.1992/0.3702, allocations: 7.507 MB / 0.5019 GB, free: 55.69 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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