Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.001888/0.001888, allocations: 112 kB / 20.43 MB, free: 1.457 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.002376/0.002376, allocations: 180.8 kB / 23.71 MB, free: 4.695 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.453/1.453, allocations: 225.6 MB / 252.5 MB, free: 13 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.1837/0.1837, allocations: 38.55 MB / 346.3 MB, free: 2.129 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.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid")
translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 72.02 kB / 484.5 MB, free: 11.15 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3505, allocations: 61.29 MB / 0.533 GB, free: 5.582 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.006369/0.3569, allocations: 6.268 MB / 0.5392 GB, free: 0.9844 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00222/0.3591, allocations: 1.431 MB / 0.5406 GB, free: 15.83 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002979/0.3594, allocations: 34.81 kB / 0.5406 GB, free: 15.81 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004791/0.3599, allocations: 140.9 kB / 0.5407 GB, free: 15.69 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0007601/0.3607, allocations: 389.8 kB / 0.5411 GB, free: 15.38 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005015/0.3612, allocations: 199.8 kB / 0.5413 GB, free: 15.22 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0009989/0.3622, allocations: 0.9251 MB / 0.5422 GB, free: 14.7 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003204/0.3625, allocations: 170.4 kB / 0.5424 GB, free: 14.6 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0006021/0.3631, allocations: 416.8 kB / 0.5427 GB, free: 14.36 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0007576/0.3638, allocations: 0.4893 MB / 0.5432 GB, free: 14.08 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 9.361e-05/0.3639, allocations: 47.56 kB / 0.5433 GB, free: 14.08 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.3641, allocations: 50.88 kB / 0.5433 GB, free: 14.07 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.000315/0.3644, allocations: 267.4 kB / 0.5436 GB, free: 13.9 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003651/0.3648, allocations: 320.7 kB / 0.5439 GB, free: 13.7 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0008568/0.3656, allocations: 0.6694 MB / 0.5445 GB, free: 13.25 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3656, allocations: 1.375 kB / 0.5445 GB, free: 13.25 MB / 398.1 MB
Notification: Performance of FrontEnd: time 4.449e-06/0.3656, allocations: 3.984 kB / 0.5445 GB, free: 13.24 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.137e-05/0.3656, allocations: 0 / 0.5445 GB, free: 13.24 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: 123
 * Number of variables: 123
Notification: Performance of Generate backend data structure: time 0.0018/0.3674, allocations: 0.896 MB / 0.5454 GB, free: 12.56 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.3675, allocations: 9.812 kB / 0.5454 GB, free: 12.56 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.3676, allocations: 69.45 kB / 0.5455 GB, free: 12.52 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.3686, allocations: 492.8 kB / 0.546 GB, free: 12.16 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.97e-05/0.3687, allocations: 45.05 kB / 0.546 GB, free: 12.14 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.3688, allocations: 52.53 kB / 0.5461 GB, free: 12.12 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.3699, allocations: 0.6226 MB / 0.5467 GB, free: 11.71 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.3699, allocations: 7.875 kB / 0.5467 GB, free: 11.7 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.477e-05/0.37, allocations: 21.16 kB / 0.5467 GB, free: 11.68 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001139/0.3701, allocations: 38 kB / 0.5467 GB, free: 11.67 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008664/0.371, allocations: 0.507 MB / 0.5472 GB, free: 11.43 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00336/0.3743, allocations: 2.172 MB / 0.5493 GB, free: 9.727 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0008884/0.3752, allocations: 472.4 kB / 0.5498 GB, free: 9.465 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0006747/0.3759, allocations: 335.9 kB / 0.5501 GB, free: 9.301 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.3759, allocations: 8.844 kB / 0.5501 GB, free: 9.297 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.3759, allocations: 37.84 kB / 0.5502 GB, free: 9.254 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=45): time 1.954e-06/0.3759, allocations: 0 / 0.5502 GB, free: 9.254 MB / 398.1 MB
Notification: Performance of matching and sorting (n=47): time 0.003642/0.3796, allocations: 1.605 MB / 0.5517 GB, free: 8.32 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.688e-05/0.3797, allocations: 86.42 kB / 0.5518 GB, free: 8.223 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005712/0.3802, allocations: 427 kB / 0.5522 GB, free: 7.961 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.202e-05/0.3803, allocations: 31.86 kB / 0.5522 GB, free: 7.926 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002799/0.3806, allocations: 295.9 kB / 0.5525 GB, free: 7.66 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.3807, allocations: 182.9 kB / 0.5527 GB, free: 7.5 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.3809, allocations: 88.78 kB / 0.5528 GB, free: 7.445 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001968/0.3811, allocations: 364.2 kB / 0.5531 GB, free: 7.094 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/0.3814, allocations: 189.9 kB / 0.5533 GB, free: 7.004 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.3818, allocations: 308.2 kB / 0.5536 GB, free: 6.715 MB / 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1])
Notification: Performance of analyzeInitialSystem (initialization): time 0.002831/0.3847, allocations: 1.173 MB / 0.5548 GB, free: 5.496 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3847, allocations: 0 / 0.5548 GB, free: 5.496 MB / 398.1 MB
Notification: Performance of matching and sorting (n=65) (initialization): time 0.001331/0.386, allocations: 0.7068 MB / 0.5554 GB, free: 4.777 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.386, allocations: 4 kB / 0.5554 GB, free: 4.773 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.386, allocations: 4 kB / 0.5555 GB, free: 4.77 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004541/0.3865, allocations: 149.2 kB / 0.5556 GB, free: 4.621 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005068/0.387, allocations: 107.8 kB / 0.5557 GB, free: 4.516 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003412/0.3904, allocations: 2.503 MB / 0.5581 GB, free: 1.898 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003971/0.3908, allocations: 32.02 kB / 0.5582 GB, free: 1.867 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.821e-05/0.3908, allocations: 20 kB / 0.5582 GB, free: 1.848 MB / 398.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[1] = ind.i_start[1].
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 16
 * 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 (54):
 * Single equations (assignments): 53
 * Array equations: 0
 * 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
   {(3,9,88.9%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0003722/0.3912, allocations: 221.7 kB / 0.5584 GB, free: 1.621 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.6e-05/0.3913, allocations: 55.61 kB / 0.5585 GB, free: 1.566 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.3926, allocations: 0.6542 MB / 0.5591 GB, free: 0.8984 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.3926, allocations: 4.094 kB / 0.5591 GB, free: 0.8945 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3926, allocations: 7.938 kB / 0.5591 GB, free: 0.8867 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.3926, allocations: 7.922 kB / 0.5591 GB, free: 0.8789 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002469/0.3951, allocations: 1.337 MB / 0.5604 GB, free: 15.46 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.3951, allocations: 0 / 0.5604 GB, free: 15.46 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000384/0.3955, allocations: 71.89 kB / 0.5605 GB, free: 15.39 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0004436/0.3959, allocations: 156.9 kB / 0.5606 GB, free: 15.23 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.3959, allocations: 8 kB / 0.5606 GB, free: 15.22 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003191/0.3991, allocations: 2.524 MB / 0.5631 GB, free: 12.59 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.3991, allocations: 3.938 kB / 0.5631 GB, free: 12.59 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.4008, allocations: 0.9854 MB / 0.5641 GB, free: 11.57 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.4009, allocations: 55.7 kB / 0.5641 GB, free: 11.52 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.925e-05/0.401, allocations: 12 kB / 0.5641 GB, free: 11.5 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002944/0.4013, allocations: 19.92 kB / 0.5642 GB, free: 11.48 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.4014, allocations: 35.92 kB / 0.5642 GB, free: 11.45 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.4014, allocations: 20 kB / 0.5642 GB, free: 11.43 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.000409/0.4018, allocations: 291.1 kB / 0.5645 GB, free: 11.15 MB / 414.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.4018, allocations: 0 / 0.5645 GB, free: 11.15 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0006974/0.4025, allocations: 144 kB / 0.5646 GB, free: 11.01 MB / 414.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 7
 * Number of states: 3 (meterDC.pav,meterAC.pav,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 (41):
 * Single equations (assignments): 39
 * Array equations: 0
 * 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
   {(3,9,88.9%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001545/0.4027, allocations: 115.1 kB / 0.5647 GB, free: 10.89 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.001222/0.4039, allocations: 0.6364 MB / 0.5654 GB, free: 10.23 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4039, allocations: 0 / 0.5654 GB, free: 10.23 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0007349/0.4046, allocations: 419.1 kB / 0.5658 GB, free: 9.812 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007665/0.4054, allocations: 144.2 kB / 0.5659 GB, free: 9.672 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.4077, allocations: 1.331 MB / 0.5672 GB, free: 8.293 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000684/0.4084, allocations: 0.9331 MB / 0.5681 GB, free: 7.332 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0004587/0.4089, allocations: 104.7 kB / 0.5682 GB, free: 7.227 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.409, allocations: 35.44 kB / 0.5682 GB, free: 7.195 MB / 414.1 MB
Notification: Performance of SimCode: time 6.41e-07/0.409, allocations: 0 / 0.5682 GB, free: 7.195 MB / 414.1 MB
Notification: Performance of Templates: time 0.02201/0.431, allocations: 7.262 MB / 0.5753 GB, free: 15.99 MB / 430.1 MB
"
[Timeout remaining time 660]
make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile [Timeout 660]
(rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 480]
diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.284767379052937]