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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 112.2 kB / 20.43 MB, free: 1.301 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 189.2 kB / 23.72 MB, free: 4.551 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1801/0.1801, allocations: 38.55 MB / 346.3 MB, free: 2.105 MB / 270.1 MB
"
[Timeout remaining time 180]
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=1000,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=1000,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") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 71.88 kB / 484.5 MB, free: 11.13 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3517, allocations: 61.29 MB / 0.533 GB, free: 5.562 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007513/0.3592, allocations: 6.667 MB / 0.5396 GB, free: 0.6562 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003331/0.3625, allocations: 1.903 MB / 0.5414 GB, free: 15.13 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0003122/0.3628, allocations: 42.44 kB / 0.5415 GB, free: 15.11 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001352/0.3642, allocations: 451.6 kB / 0.5419 GB, free: 14.76 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0008389/0.365, allocations: 430.3 kB / 0.5423 GB, free: 14.41 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0008281/0.3659, allocations: 359 kB / 0.5426 GB, free: 14.14 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001119/0.367, allocations: 1.027 MB / 0.5436 GB, free: 13.57 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0005432/0.3675, allocations: 356.8 kB / 0.544 GB, free: 13.34 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0006755/0.3682, allocations: 472.4 kB / 0.5444 GB, free: 13.08 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0008203/0.369, allocations: 0.6078 MB / 0.545 GB, free: 12.72 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.00011/0.3691, allocations: 70.47 kB / 0.5451 GB, free: 12.71 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0005212/0.3696, allocations: 281.5 kB / 0.5454 GB, free: 12.6 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.000388/0.37, allocations: 372.2 kB / 0.5457 GB, free: 12.36 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000486/0.3705, allocations: 426.2 kB / 0.5461 GB, free: 12.08 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001314/0.3718, allocations: 1.049 MB / 0.5471 GB, free: 11.39 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3718, allocations: 3.938 kB / 0.5471 GB, free: 11.38 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.743e-06/0.3718, allocations: 1.156 kB / 0.5471 GB, free: 11.38 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.226e-05/0.3719, allocations: 0 / 0.5471 GB, free: 11.38 MB / 398.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.002349/0.3742, allocations: 1.065 MB / 0.5482 GB, free: 10.59 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.3742, allocations: 13.69 kB / 0.5482 GB, free: 10.59 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007828/0.375, allocations: 132.1 kB / 0.5483 GB, free: 10.52 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.3763, allocations: 0.5434 MB / 0.5489 GB, free: 10.12 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.8e-05/0.3763, allocations: 51.98 kB / 0.5489 GB, free: 10.09 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001772/0.3765, allocations: 78.38 kB / 0.549 GB, free: 10.06 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.3781, allocations: 1.016 MB / 0.55 GB, free: 9.441 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.3781, allocations: 1.188 kB / 0.55 GB, free: 9.441 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.919e-05/0.3782, allocations: 21.78 kB / 0.55 GB, free: 9.426 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002157/0.3784, allocations: 74.91 kB / 0.5501 GB, free: 9.406 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.38, allocations: 0.9773 MB / 0.551 GB, free: 8.949 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005126/0.3851, allocations: 3.193 MB / 0.5541 GB, free: 6.297 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.3863, allocations: 0.6351 MB / 0.5548 GB, free: 5.648 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0006563/0.3869, allocations: 385.6 kB / 0.5551 GB, free: 5.266 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.42e-05/0.387, allocations: 13.42 kB / 0.5551 GB, free: 5.254 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/0.387, allocations: 46.94 kB / 0.5552 GB, free: 5.199 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=73): time 2.315e-06/0.387, allocations: 4 kB / 0.5552 GB, free: 5.195 MB / 398.1 MB
Notification: Performance of matching and sorting (n=75): time 0.004152/0.3912, allocations: 2.223 MB / 0.5574 GB, free: 2.938 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.553e-05/0.3912, allocations: 89.89 kB / 0.5574 GB, free: 2.828 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005307/0.3918, allocations: 441.8 kB / 0.5579 GB, free: 2.387 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.277e-05/0.3918, allocations: 37.7 kB / 0.5579 GB, free: 2.344 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002726/0.3921, allocations: 360.5 kB / 0.5582 GB, free: 1.984 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.000237/0.3923, allocations: 277.6 kB / 0.5585 GB, free: 1.711 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/0.3926, allocations: 154.5 kB / 0.5587 GB, free: 1.555 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002003/0.3928, allocations: 374.7 kB / 0.559 GB, free: 1.18 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005565/0.3933, allocations: 345.8 kB / 0.5593 GB, free: 0.8438 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006933/0.394, allocations: 0.5185 MB / 0.5599 GB, free: 260 kB / 398.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.005582/0.3996, allocations: 2.17 MB / 0.562 GB, free: 14.02 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3996, allocations: 0 / 0.562 GB, free: 14.02 MB / 414.1 MB
Notification: Performance of matching and sorting (n=107) (initialization): time 0.001775/0.4014, allocations: 1.023 MB / 0.563 GB, free: 12.98 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.4014, allocations: 8 kB / 0.563 GB, free: 12.97 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.4014, allocations: 4.625 kB / 0.563 GB, free: 12.97 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001683/0.4016, allocations: 52.75 kB / 0.563 GB, free: 12.91 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008153/0.4024, allocations: 187.7 kB / 0.5632 GB, free: 12.73 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.4038, allocations: 1.396 MB / 0.5646 GB, free: 11.21 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004784/0.4043, allocations: 35.97 kB / 0.5646 GB, free: 11.18 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.492e-05/0.4043, allocations: 31.98 kB / 0.5646 GB, free: 11.15 MB / 414.1 MB
Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system:
         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.0004492/0.4048, allocations: 277.4 kB / 0.5649 GB, free: 10.87 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.4049, allocations: 67.58 kB / 0.565 GB, free: 10.8 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.4065, allocations: 0.8953 MB / 0.5658 GB, free: 9.898 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-05/0.4066, allocations: 15.98 kB / 0.5659 GB, free: 9.883 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.4066, allocations: 4 kB / 0.5659 GB, free: 9.879 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.4066, allocations: 7.922 kB / 0.5659 GB, free: 9.871 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003601/0.4102, allocations: 1.911 MB / 0.5677 GB, free: 7.848 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.4102, allocations: 4 kB / 0.5677 GB, free: 7.844 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007217/0.4109, allocations: 147.8 kB / 0.5679 GB, free: 7.699 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.00014/0.4111, allocations: 40.97 kB / 0.5679 GB, free: 7.656 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.319e-05/0.4111, allocations: 16 kB / 0.5679 GB, free: 7.641 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.4124, allocations: 1.401 MB / 0.5693 GB, free: 6.125 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.4124, allocations: 4 kB / 0.5693 GB, free: 6.121 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/0.4145, allocations: 1.466 MB / 0.5707 GB, free: 4.578 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001576/0.4147, allocations: 55.58 kB / 0.5708 GB, free: 4.523 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.4148, allocations: 28.05 kB / 0.5708 GB, free: 4.496 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004007/0.4152, allocations: 27.97 kB / 0.5708 GB, free: 4.469 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.4153, allocations: 68.28 kB / 0.5709 GB, free: 4.402 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.547e-05/0.4154, allocations: 27.98 kB / 0.5709 GB, free: 4.375 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0003725/0.4158, allocations: 299.1 kB / 0.5712 GB, free: 4.078 MB / 414.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.4158, allocations: 0 / 0.5712 GB, free: 4.078 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.000793/0.4165, allocations: 183.9 kB / 0.5714 GB, free: 3.898 MB / 414.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.0002992/0.4168, allocations: 159.1 kB / 0.5715 GB, free: 3.734 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.001648/0.4185, allocations: 0.9152 MB / 0.5724 GB, free: 2.812 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.4185, allocations: 0 / 0.5724 GB, free: 2.812 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0007901/0.4193, allocations: 498.8 kB / 0.5729 GB, free: 2.316 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009552/0.4202, allocations: 145.4 kB / 0.5731 GB, free: 2.18 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003386/0.4236, allocations: 2.005 MB / 0.575 GB, free: 84 kB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007501/0.4244, allocations: 1.009 MB / 0.576 GB, free: 15.04 MB / 430.1 MB
Notification: Performance of simCode: alias equations: time 0.0005801/0.425, allocations: 205.3 kB / 0.5762 GB, free: 14.84 MB / 430.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001861/0.4251, allocations: 63.42 kB / 0.5763 GB, free: 14.77 MB / 430.1 MB
Notification: Performance of SimCode: time 1.002e-06/0.4251, allocations: 3.938 kB / 0.5763 GB, free: 14.77 MB / 430.1 MB
Notification: Performance of Templates: time 0.01788/0.443, allocations: 8.895 MB / 0.5849 GB, free: 5.938 MB / 430.1 MB
"
[Timeout remaining time 660]
make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile [Timeout 660]
(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) [Timeout 480]
diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.197006071917713]